From 20632d0d4f646abeb7d1fcc114bac07a5ba32849 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 28 Apr 2024 20:32:08 +0800 Subject: [PATCH] V2 --- iflytop_canbus_protocol.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/iflytop_canbus_protocol.hpp b/iflytop_canbus_protocol.hpp index 5fd8452..89dc793 100644 --- a/iflytop_canbus_protocol.hpp +++ b/iflytop_canbus_protocol.hpp @@ -4,7 +4,6 @@ #define PROTOCOL_VERSION 2 #define HEART_OVERTIME (30 * 1000) -extern "C" { #pragma pack(1) /** @@ -62,7 +61,6 @@ typedef enum { kFixBoardId_ExtBallValveCtrl = 4, // 外部球阀控制板 kFixBoardId_H2O2SensorStart = 100, // H2O2传感器板 } FixBoardId_t; - static inline const char *BoardTypeToString(uint32_t type) { switch (type) { case kMainBoard: @@ -89,6 +87,7 @@ typedef enum { kdraw_bar_disinfection_box = 4, // 手持拉杆箱消毒机 } ProjectID_t; + static inline const char *ProjectIDToString(uint32_t id) { switch (id) { case klarge_space_disinfection_machine: @@ -409,4 +408,3 @@ typedef struct { } report_device_bottom_water_sensor_data_t; #pragma pack() -}