fixed more compiler errors

David Rebbe 2024-12-10 17:28:35 -05:00
parent 7e362ec6ff
commit b5c38dc5b9
2 changed files with 7 additions and 2 deletions

View File

@ -81,7 +81,7 @@ static bool NeoMessageToSpyMessage(const neodevice_t* device, const neomessage_t
copyStatusData(); copyStatusData();
}; };
switch (Network::Type(frame.type)) switch (frame.type)
{ {
case icsneo_msg_bus_type_can: case icsneo_msg_bus_type_can:
case icsneo_msg_bus_type_swcan: case icsneo_msg_bus_type_swcan:

View File

@ -5,9 +5,12 @@
#define ICSNEO_DEVICETYPE_LONGEST_NAME (35 + 1) // Add 1 so that if someone forgets, they still have space for null terminator #define ICSNEO_DEVICETYPE_LONGEST_NAME (35 + 1) // Add 1 so that if someone forgets, they still have space for null terminator
#define ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION (ICSNEO_DEVICETYPE_LONGEST_NAME + 7) // 6 character serial, plus space #define ICSNEO_DEVICETYPE_LONGEST_DESCRIPTION (ICSNEO_DEVICETYPE_LONGEST_NAME + 7) // 6 character serial, plus space
#include <icsneo/icsneotypes.h>
#ifdef __cplusplus
#include <cstdint> #include <cstdint>
#include <string> #include <string>
#include <icsneo/icsneotypes.h>
namespace icsneo { namespace icsneo {
@ -147,3 +150,5 @@ private:
}; };
}; // namespace icsneo }; // namespace icsneo
#endif // __cplusplus