Skip to content
Snippets Groups Projects
Commit ad500b01 authored by Panayiotis Savva's avatar Panayiotis Savva
Browse files

Fixes TMC compilation error

parent a27fa80a
No related branches found
No related tags found
No related merge requests found
......@@ -376,7 +376,10 @@ void _tmc_say_sgt(const char name[], const uint32_t sgt) {
break;
case TMC_TPWMTHRS_MMS: {
uint32_t tpwmthrs_val = st.TPWMTHRS();
tpwmthrs_val ? SERIAL_ECHO(12650000UL * st.microsteps() / (256 * tpwmthrs_val * spmm)) : SERIAL_CHAR('-');
if (tpwmthrs_val)
SERIAL_ECHO(12650000UL * st.microsteps() / (256 * tpwmthrs_val * spmm));
else
SERIAL_CHAR('-');
}
break;
case TMC_OTPW: serialprintPGM(st.otpw() ? PSTR("true") : PSTR("false")); break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment