Resolve some compile errors and warnings that can arise under Linux
parent
fb4a327891
commit
8435efb039
|
|
@ -2,6 +2,7 @@
|
|||
#define __NEOMESSAGE_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct {
|
||||
uint16_t netid;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@ neomessage_t icsneo::CreateNeoMessage(const Message& message) {
|
|||
case Network::Type::CAN:
|
||||
((neomessage_can_t*)&neomsg)->arbid = ((const CANMessage*)&message)->arbid;
|
||||
break;
|
||||
default:
|
||||
// TODO Implement others
|
||||
break;
|
||||
}
|
||||
|
||||
return neomsg;
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ std::shared_ptr<Message> MessageDecoder::decodePacket(const std::shared_ptr<Comm
|
|||
msg->data.push_back(data->data[i]);
|
||||
return msg;
|
||||
}
|
||||
default:
|
||||
// TODO Implement others
|
||||
break;
|
||||
}
|
||||
|
||||
auto msg = std::make_shared<Message>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue