Browse Source

update

master
zhaohe 2 years ago
parent
commit
d73af8aeff
  1. 3
      zcancmder_protocol_basic.hpp

3
zcancmder_protocol_basic.hpp

@ -34,7 +34,7 @@
uint32_t errorcode = 0; \ uint32_t errorcode = 0; \
if (cmd->id == varid) { if (cmd->id == varid) {
#define PROCESS_REPORT(type) \ #define PROCESS_REPORT(type) \
auto* report = (type##_report_t*)m_txbuf; \
auto* report = (type##_report_t*)m_txbuf; \
static_assert(sizeof(*report) < sizeof(m_txbuf), "report size too large"); \ static_assert(sizeof(*report) < sizeof(m_txbuf), "report size too large"); \
ZLOGI(TAG, #type " exec_status:%d", status); \ ZLOGI(TAG, #type " exec_status:%d", status); \
report->exec_status = status; \ report->exec_status = status; \
@ -83,3 +83,4 @@ typedef enum {
} // namespace iflytop } // namespace iflytop
#define ZCAN_CMD_PUBLIC_DEVICE_ID_STEP_MOTOR_BOARD_OFFEST 200 #define ZCAN_CMD_PUBLIC_DEVICE_ID_STEP_MOTOR_BOARD_OFFEST 200
#define ZCAN_CMD_PUBLIC_DEVICE_ID_XY_ROBOT_BOARD_OFFEST 230
Loading…
Cancel
Save