zhaohe 1 year ago
parent
commit
20632d0d4f
  1. 4
      iflytop_canbus_protocol.hpp

4
iflytop_canbus_protocol.hpp

@ -4,7 +4,6 @@
#define PROTOCOL_VERSION 2 #define PROTOCOL_VERSION 2
#define HEART_OVERTIME (30 * 1000) #define HEART_OVERTIME (30 * 1000)
extern "C" {
#pragma pack(1) #pragma pack(1)
/** /**
@ -62,7 +61,6 @@ typedef enum {
kFixBoardId_ExtBallValveCtrl = 4, // 外部球阀控制板 kFixBoardId_ExtBallValveCtrl = 4, // 外部球阀控制板
kFixBoardId_H2O2SensorStart = 100, // H2O2传感器板 kFixBoardId_H2O2SensorStart = 100, // H2O2传感器板
} FixBoardId_t; } FixBoardId_t;
static inline const char *BoardTypeToString(uint32_t type) { static inline const char *BoardTypeToString(uint32_t type) {
switch (type) { switch (type) {
case kMainBoard: case kMainBoard:
@ -89,6 +87,7 @@ typedef enum {
kdraw_bar_disinfection_box = 4, // 手持拉杆箱消毒机 kdraw_bar_disinfection_box = 4, // 手持拉杆箱消毒机
} ProjectID_t; } ProjectID_t;
static inline const char *ProjectIDToString(uint32_t id) { static inline const char *ProjectIDToString(uint32_t id) {
switch (id) { switch (id) {
case klarge_space_disinfection_machine: case klarge_space_disinfection_machine:
@ -409,4 +408,3 @@ typedef struct {
} report_device_bottom_water_sensor_data_t; } report_device_bottom_water_sensor_data_t;
#pragma pack() #pragma pack()
}
Loading…
Cancel
Save