🎨 Suppress M122 sign warning (#25613)

This commit is contained in:
Jason Smith 2023-04-07 18:52:33 -07:00 committed by GitHub
parent f1970b9da8
commit c7290f00e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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