Browse Source

Fix compile error in tmc_status

Scott Lahteine 7 years ago
parent
commit
89b1580587
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      Marlin/src/feature/tmc_util.cpp

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

385
         break;
385
         break;
386
       case TMC_TPWMTHRS_MMS: {
386
       case TMC_TPWMTHRS_MMS: {
387
           uint32_t tpwmthrs_val = st.TPWMTHRS();
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
         break;
393
         break;
391
       case TMC_OTPW: serialprintPGM(st.otpw() ? PSTR("true") : PSTR("false")); break;
394
       case TMC_OTPW: serialprintPGM(st.otpw() ? PSTR("true") : PSTR("false")); break;

Loading…
Cancel
Save