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