From 1a22209b189847bee8761a2f773c3dea084c2e96 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 12 Oct 2023 20:27:41 +0800 Subject: [PATCH] update --- zcancmder_protocol_basic.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zcancmder_protocol_basic.hpp b/zcancmder_protocol_basic.hpp index 8762ea8..591d86d 100644 --- a/zcancmder_protocol_basic.hpp +++ b/zcancmder_protocol_basic.hpp @@ -32,8 +32,7 @@ static_assert(sizeof(*ack) < sizeof(m_txbuf), "ack size too large"); \ auto __attribute__((unused)) cmdheader = rxcmd->get_cmdheader(); \ uint32_t errorcode = 0; \ - if (cmd->id == varid) { \ - + if (cmd->id == varid) { #define PROCESS_REPORT(type) \ zlock_guard l(m_lock); \ auto* report = (type##_report_t*)m_txbuf; \ @@ -83,3 +82,5 @@ typedef enum { } // namespace zcr } // namespace iflytop + +#define ZCAN_CMD_PUBLIC_DEVICE_ID_STEP_MOTOR_BOARD_OFFEST 200