From ce97b66ff5b87e53464b361f6f2699969697b6a2 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 24 Sep 2023 22:04:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=83=A8=E5=88=86=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/iflytop_can_slave_module_master_end/stepmotor.cpp | 4 ++-- components/iflytop_can_slave_module_master_end/stepmotor.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/iflytop_can_slave_module_master_end/stepmotor.cpp b/components/iflytop_can_slave_module_master_end/stepmotor.cpp index d925878..77b084e 100644 --- a/components/iflytop_can_slave_module_master_end/stepmotor.cpp +++ b/components/iflytop_can_slave_module_master_end/stepmotor.cpp @@ -86,7 +86,7 @@ bool StepMotor::rotate(int32_t direction) { // ZLOGE(TAG, "call stepmotor fail,motor is null"); return false; } - ZLOGI(TAG, "rotate %d", direction); + ZLOGI(TAG, "rotate %ld", direction); return m_canMaster->writeReg(m_id, m_baseCtrlPoint + SAMC_REG_ACT_ROTATE, direction, 20); } int32_t StepMotor::getPos() { @@ -140,4 +140,4 @@ void StepMotor::clearException() { namespace iflytop { StepMotor g_nullStepMotor; } -#endif \ No newline at end of file +#endif diff --git a/components/iflytop_can_slave_module_master_end/stepmotor.hpp b/components/iflytop_can_slave_module_master_end/stepmotor.hpp index 0bff3d5..df2e018 100644 --- a/components/iflytop_can_slave_module_master_end/stepmotor.hpp +++ b/components/iflytop_can_slave_module_master_end/stepmotor.hpp @@ -44,4 +44,4 @@ class StepMotor { extern StepMotor g_nullStepMotor; } // namespace iflytop -#endif \ No newline at end of file +#endif