|
|
@ -34,7 +34,7 @@ |
|
|
|
uint32_t errorcode = 0; \ |
|
|
|
if (cmd->id == varid) { |
|
|
|
#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"); \ |
|
|
|
ZLOGI(TAG, #type " exec_status:%d", status); \ |
|
|
|
report->exec_status = status; \ |
|
|
@ -83,3 +83,4 @@ typedef enum { |
|
|
|
} // namespace iflytop
|
|
|
|
|
|
|
|
#define ZCAN_CMD_PUBLIC_DEVICE_ID_STEP_MOTOR_BOARD_OFFEST 200
|
|
|
|
#define ZCAN_CMD_PUBLIC_DEVICE_ID_XY_ROBOT_BOARD_OFFEST 230
|