From 37e343e39ad6b4f7334cb56842131a5709f9ac0b Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 15 Oct 2023 14:11:49 +0800 Subject: [PATCH] update --- components/tmc/ic/ztmc5130.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/tmc/ic/ztmc5130.cpp b/components/tmc/ic/ztmc5130.cpp index 5a136d3..2148c52 100644 --- a/components/tmc/ic/ztmc5130.cpp +++ b/components/tmc/ic/ztmc5130.cpp @@ -209,8 +209,6 @@ int32_t TMC5130::readInt(uint8_t address) { return ((uint32_t)data[1] << 24) | ((uint32_t)data[2] << 16) | (data[3] << 8) | data[4]; } -#endif - int32_t TMC5130::to_motor_acc(int32_t acc) { // int32_t val = acc / 60.0 * 51200; return val; @@ -231,4 +229,6 @@ int32_t TMC5130::to_user_pos(int32_t pos) { // int32_t TMC5130::to_user_vel(int32_t vel) { // int32_t val = vel * 60.0 / 51200.0; return val; -} \ No newline at end of file +} +#endif +