From 20f8c9b9507463769cd56f96c75b244c50298d73 Mon Sep 17 00:00:00 2001 From: teemuatlut Date: Fri, 16 Feb 2018 10:19:17 +0200 Subject: [PATCH] TMC SGT is int8 (#9650) --- Marlin/tmc_util.cpp | 2 +- Marlin/tmc_util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/tmc_util.cpp b/Marlin/tmc_util.cpp index 14339bf61b..42ecf631ff 100644 --- a/Marlin/tmc_util.cpp +++ b/Marlin/tmc_util.cpp @@ -233,7 +233,7 @@ void _tmc_say_pwmthrs(const char name[], const uint32_t thrs) { SERIAL_ECHO(name); SERIAL_ECHOLNPAIR(" stealthChop max speed set to ", thrs); } -void _tmc_say_sgt(const char name[], const uint32_t sgt) { +void _tmc_say_sgt(const char name[], const int8_t sgt) { SERIAL_ECHO(name); SERIAL_ECHOPGM(" driver homing sensitivity set to "); SERIAL_PRINTLN(sgt, DEC); diff --git a/Marlin/tmc_util.h b/Marlin/tmc_util.h index de51de93d1..b25927b286 100644 --- a/Marlin/tmc_util.h +++ b/Marlin/tmc_util.h @@ -43,7 +43,7 @@ void _tmc_say_current(const char name[], const uint16_t curr); void _tmc_say_otpw(const char name[], const bool otpw); void _tmc_say_otpw_cleared(const char name[]); void _tmc_say_pwmthrs(const char name[], const uint32_t thrs); -void _tmc_say_sgt(const char name[], const uint32_t sgt); +void _tmc_say_sgt(const char name[], const int8_t sgt); template void tmc_get_current(TMC &st, const char name[]) {