🧑💻 Apply simplified ?:
This commit is contained in:
parent
92721d1bf7
commit
6d819eb8d4
5 changed files with 8 additions and 8 deletions
|
|
@ -601,8 +601,8 @@
|
|||
case TMC_STEALTHCHOP: serialprint_truefalse(st.en_pwm_mode()); break;
|
||||
case TMC_GLOBAL_SCALER:
|
||||
{
|
||||
uint16_t value = st.GLOBAL_SCALER();
|
||||
SERIAL_ECHO(value ? value : 256);
|
||||
const uint16_t value = st.GLOBAL_SCALER();
|
||||
SERIAL_ECHO(value ?: 256);
|
||||
SERIAL_ECHOPGM("/256");
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue