From 2dfab82d85de97a6256f3fc9dc2b63385cfb67ac Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 9 Sep 2023 22:41:26 +0800 Subject: [PATCH] fix compile bug --- components/iflytop_can_slave_module_master_end/stepmotor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/iflytop_can_slave_module_master_end/stepmotor.cpp b/components/iflytop_can_slave_module_master_end/stepmotor.cpp index abc8a30..d925878 100644 --- a/components/iflytop_can_slave_module_master_end/stepmotor.cpp +++ b/components/iflytop_can_slave_module_master_end/stepmotor.cpp @@ -1,4 +1,6 @@ #include "stepmotor.hpp" +#ifdef HAL_CAN_MODULE_ENABLED + using namespace iflytop; #define SAMC_REG_ACT_ROTATE (0) // 速度模式控制 @@ -138,3 +140,4 @@ void StepMotor::clearException() { namespace iflytop { StepMotor g_nullStepMotor; } +#endif \ No newline at end of file