Selaa lähdekoodia

Fix compile error in tmc_status

Scott Lahteine 7 vuotta sitten
vanhempi
commit
89b1580587
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4
    1
      Marlin/src/feature/tmc_util.cpp

+ 4
- 1
Marlin/src/feature/tmc_util.cpp Näytä tiedosto

@@ -385,7 +385,10 @@ void _tmc_say_sgt(const TMC_AxisEnum axis, const int8_t sgt) {
385 385
         break;
386 386
       case TMC_TPWMTHRS_MMS: {
387 387
           uint32_t tpwmthrs_val = st.TPWMTHRS();
388
-          tpwmthrs_val ? SERIAL_ECHO(12650000UL * st.microsteps() / (256 * tpwmthrs_val * spmm)) : (void)SERIAL_CHAR('-');
388
+          if (tpwmthrs_val)
389
+            SERIAL_ECHO(12650000UL * st.microsteps() / (256 * tpwmthrs_val * spmm));
390
+          else
391
+            SERIAL_CHAR('-');
389 392
         }
390 393
         break;
391 394
       case TMC_OTPW: serialprintPGM(st.otpw() ? PSTR("true") : PSTR("false")); break;

Loading…
Peruuta
Tallenna