Resolve some compile errors and warnings that can arise under Linux

pull/4/head
Paul Hollinsky 2018-09-20 14:26:59 -04:00
parent fb4a327891
commit 8435efb039
3 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#define __NEOMESSAGE_H_
#include <stdint.h>
#include <stddef.h>
typedef struct {
uint16_t netid;

View File

@ -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;

View File

@ -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>();