Add comments

This commit is contained in:
Anders Sandstrom
2021-03-10 15:42:02 +01:00
parent 6e84d4bf0c
commit cb9fe2a361

View File

@@ -31,6 +31,9 @@ void f_worker_write(void *obj) {
}
/** ecmc ecmcSocketCANWriteBuffer class
* Implements writing of can messages to a socket.
* Two buffers are used. While a thread writes to socket from one of teh buffers,
* data can still be added to the other buffer. Then teh buffers are switched.
*/
ecmcSocketCANWriteBuffer::ecmcSocketCANWriteBuffer(int socketId, int cfgDbgMode) {
memset(&buffer1_.frames,0,sizeof(struct can_frame)*ECMC_CAN_MAX_WRITE_CMDS);