|
@ -32,8 +32,7 @@ |
|
|
static_assert(sizeof(*ack) < sizeof(m_txbuf), "ack size too large"); \ |
|
|
static_assert(sizeof(*ack) < sizeof(m_txbuf), "ack size too large"); \ |
|
|
auto __attribute__((unused)) cmdheader = rxcmd->get_cmdheader(); \ |
|
|
auto __attribute__((unused)) cmdheader = rxcmd->get_cmdheader(); \ |
|
|
uint32_t errorcode = 0; \ |
|
|
uint32_t errorcode = 0; \ |
|
|
if (cmd->id == varid) { \ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cmd->id == varid) { |
|
|
#define PROCESS_REPORT(type) \
|
|
|
#define PROCESS_REPORT(type) \
|
|
|
zlock_guard l(m_lock); \ |
|
|
zlock_guard l(m_lock); \ |
|
|
auto* report = (type##_report_t*)m_txbuf; \ |
|
|
auto* report = (type##_report_t*)m_txbuf; \ |
|
@ -83,3 +82,5 @@ typedef enum { |
|
|
|
|
|
|
|
|
} // namespace zcr
|
|
|
} // namespace zcr
|
|
|
} // namespace iflytop
|
|
|
} // namespace iflytop
|
|
|
|
|
|
|
|
|
|
|
|
#define ZCAN_CMD_PUBLIC_DEVICE_ID_STEP_MOTOR_BOARD_OFFEST 200
|