Browse Source

TMC SGT is int8 (#9651)

teemuatlut 7 years ago
parent
commit
749bc42aa9
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/src/feature/tmc_util.cpp
  2. 1
    1
      Marlin/src/feature/tmc_util.h

+ 1
- 1
Marlin/src/feature/tmc_util.cpp View File

@@ -236,7 +236,7 @@ void _tmc_say_pwmthrs(const char name[], const uint32_t thrs) {
236 236
   SERIAL_ECHO(name);
237 237
   SERIAL_ECHOLNPAIR(" stealthChop max speed set to ", thrs);
238 238
 }
239
-void _tmc_say_sgt(const char name[], const uint32_t sgt) {
239
+void _tmc_say_sgt(const char name[], const int8_t sgt) {
240 240
   SERIAL_ECHO(name);
241 241
   SERIAL_ECHOPGM(" driver homing sensitivity set to ");
242 242
   SERIAL_PRINTLN(sgt, DEC);

+ 1
- 1
Marlin/src/feature/tmc_util.h View File

@@ -43,7 +43,7 @@ void _tmc_say_current(const char name[], const uint16_t curr);
43 43
 void _tmc_say_otpw(const char name[], const bool otpw);
44 44
 void _tmc_say_otpw_cleared(const char name[]);
45 45
 void _tmc_say_pwmthrs(const char name[], const uint32_t thrs);
46
-void _tmc_say_sgt(const char name[], const uint32_t sgt);
46
+void _tmc_say_sgt(const char name[], const int8_t sgt);
47 47
 
48 48
 template<typename TMC>
49 49
 void tmc_get_current(TMC &st, const char name[]) {

Loading…
Cancel
Save