We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ba2b13 commit 88654dfCopy full SHA for 88654df
Marlin/src/gcode/feature/trinamic/M122.cpp
@@ -47,7 +47,7 @@ void GcodeSuite::M122() {
47
if (sflag && !sval)
48
tmc_set_report_interval(0);
49
else if (parser.seenval('P'))
50
- tmc_set_report_interval(_MAX(250, parser.value_ushort()));
+ tmc_set_report_interval(_MAX(uint16_t(250), parser.value_ushort()));
51
else if (sval)
52
tmc_set_report_interval(MONITOR_DRIVER_STATUS_INTERVAL_MS);
53
#endif
0 commit comments