Skip to content

Commit

Permalink
🎨 Suppress M122 sign warning (#25613)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjasonsmith authored Apr 8, 2023
1 parent f1970b9 commit c7290f0
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 c7290f0

Please sign in to comment.