From b5c38dc5b948e39873c4441963d9192e8127d5c5 Mon Sep 17 00:00:00 2001 From: David Rebbe Date: Tue, 10 Dec 2024 17:28:35 -0500 Subject: [PATCH] fixed more compiler errors --- api/icsneolegacy/icsneolegacy.cpp | 2 +- include/icsneo/device/devicetype.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/api/icsneolegacy/icsneolegacy.cpp b/api/icsneolegacy/icsneolegacy.cpp index 7fea86a..29bb3d5 100644 --- a/api/icsneolegacy/icsneolegacy.cpp +++ b/api/icsneolegacy/icsneolegacy.cpp @@ -81,7 +81,7 @@ static bool NeoMessageToSpyMessage(const neodevice_t* device, const neomessage_t copyStatusData(); }; - switch (Network::Type(frame.type)) + switch (frame.type) { case icsneo_msg_bus_type_can: case icsneo_msg_bus_type_swcan: diff --git a/include/icsneo/device/devicetype.h b/include/icsneo/device/devicetype.h index 3db5305..216a9f0 100644 --- a/include/icsneo/device/devicetype.h +++ b/include/icsneo/device/devicetype.h @@ -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_DESCRIPTION (ICSNEO_DEVICETYPE_LONGEST_NAME + 7) // 6 character serial, plus space + +#include + +#ifdef __cplusplus #include #include -#include namespace icsneo { @@ -147,3 +150,5 @@ private: }; }; // namespace icsneo + +#endif // __cplusplus \ No newline at end of file