0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-02-02 15:06:29 +00:00

🎨 Suppress M122 sign warning (#25613)

This commit is contained in:
Jason Smith 2023-04-07 18:52:33 -07:00 committed by Scott Lahteine
parent ea6430ddf6
commit b0c3db67f0

View file

@ -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