Skip to content

Commit 88654df

Browse files
sjasonsmithSMHRambo
authored andcommitted
🎨 Suppress M122 sign warning (MarlinFirmware#25613)
1 parent 8ba2b13 commit 88654df

File tree

1 file changed

+1
-1
lines changed
  • Marlin/src/gcode/feature/trinamic

1 file changed

+1
-1
lines changed

Marlin/src/gcode/feature/trinamic/M122.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void GcodeSuite::M122() {
4747
if (sflag && !sval)
4848
tmc_set_report_interval(0);
4949
else if (parser.seenval('P'))
50-
tmc_set_report_interval(_MAX(250, parser.value_ushort()));
50+
tmc_set_report_interval(_MAX(uint16_t(250), parser.value_ushort()));
5151
else if (sval)
5252
tmc_set_report_interval(MONITOR_DRIVER_STATUS_INTERVAL_MS);
5353
#endif

0 commit comments

Comments
 (0)