mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Resolve some compile errors and warnings that can arise under Linux
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user