mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 17:38:35 +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_
|
#define __NEOMESSAGE_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint16_t netid;
|
uint16_t netid;
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ neomessage_t icsneo::CreateNeoMessage(const Message& message) {
|
|||||||
case Network::Type::CAN:
|
case Network::Type::CAN:
|
||||||
((neomessage_can_t*)&neomsg)->arbid = ((const CANMessage*)&message)->arbid;
|
((neomessage_can_t*)&neomsg)->arbid = ((const CANMessage*)&message)->arbid;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
// TODO Implement others
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return neomsg;
|
return neomsg;
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ std::shared_ptr<Message> MessageDecoder::decodePacket(const std::shared_ptr<Comm
|
|||||||
msg->data.push_back(data->data[i]);
|
msg->data.push_back(data->data[i]);
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
// TODO Implement others
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto msg = std::make_shared<Message>();
|
auto msg = std::make_shared<Message>();
|
||||||
|
|||||||
Reference in New Issue
Block a user