Browse Source

update

master
zhaohe 1 year ago
parent
commit
bd49987090
  1. 13
      iflytop_canbus_protocol.hpp

13
iflytop_canbus_protocol.hpp

@ -103,11 +103,12 @@ static inline const char *ProjectIDToString(uint32_t id) {
}
typedef enum {
kerr_noerror = 0,
kerr_overtime = 1,
kerr_invalid_param = 2,
kerr_invalid_param_num = 3,
kerr_subdevice_offline = 4,
kerr_noerror = 0,
kerr_overtime = 1,
kerr_invalid_param = 2,
kerr_invalid_param_num = 3,
kerr_subdevice_offline = 4,
kerr_function_not_support = 5,
// 驱动器错误
kerr_motor_reset_error = 100,
@ -135,6 +136,8 @@ static inline const char *ErrorCodeToString(uint32_t code) {
return "invalid_param_num";
case kerr_subdevice_offline:
return "subdevice_offline";
case kerr_function_not_support:
return "function_not_support";
case kerr_motor_reset_error:
return "motor_reset_error";
case kerr_motor_subdevice_offline:

Loading…
Cancel
Save