Skip to content

Commit

Permalink
🎨 Suppress M122 sign warning (MarlinFirmware#25613)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjasonsmith authored and Tracy Spiva committed May 25, 2023
1 parent 241b630 commit 12111bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/gcode/feature/trinamic/M122.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void GcodeSuite::M122() {
if (sflag && !sval)
tmc_set_report_interval(0);
else if (parser.seenval('P'))
tmc_set_report_interval(_MAX(250, parser.value_ushort()));
tmc_set_report_interval(_MAX(uint16_t(250), parser.value_ushort()));
else if (sval)
tmc_set_report_interval(MONITOR_DRIVER_STATUS_INTERVAL_MS);
#endif
Expand Down

0 comments on commit 12111bf

Please sign in to comment.