mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
Cast SERIAL_CHAR to void in M122 (#10086)
This commit is contained in:
parent
c24dbcbfe1
commit
e6dcfa64b0
@ -385,7 +385,7 @@ void _tmc_say_sgt(const TMC_AxisEnum axis, const int8_t sgt) {
|
|||||||
break;
|
break;
|
||||||
case TMC_TPWMTHRS_MMS: {
|
case TMC_TPWMTHRS_MMS: {
|
||||||
uint32_t tpwmthrs_val = st.TPWMTHRS();
|
uint32_t tpwmthrs_val = st.TPWMTHRS();
|
||||||
tpwmthrs_val ? SERIAL_ECHO(12650000UL * st.microsteps() / (256 * tpwmthrs_val * spmm)) : SERIAL_CHAR('-');
|
tpwmthrs_val ? SERIAL_ECHO(12650000UL * st.microsteps() / (256 * tpwmthrs_val * spmm)) : (void)SERIAL_CHAR('-');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TMC_OTPW: serialprintPGM(st.otpw() ? PSTR("true") : PSTR("false")); break;
|
case TMC_OTPW: serialprintPGM(st.otpw() ? PSTR("true") : PSTR("false")); break;
|
||||||
|
Loading…
Reference in New Issue
Block a user