Serial refactor followup

This commit is contained in:
Scott Lahteine 2021-01-28 02:19:12 -06:00
parent 3f01b222b2
commit 7bbdbcfb6d

View File

@ -174,7 +174,7 @@ public:
#if ENABLED(AUTO_REPORT_SD_STATUS) #if ENABLED(AUTO_REPORT_SD_STATUS)
static void auto_report_sd_status(); static void auto_report_sd_status();
static inline void set_auto_report_interval(uint8_t v) { static inline void set_auto_report_interval(uint8_t v) {
TERN_(HAS_MULTI_SERIAL, auto_report_port = serialHook.portMask); TERN_(HAS_MULTI_SERIAL, auto_report_port = multiSerial.portMask);
NOMORE(v, 60); NOMORE(v, 60);
auto_report_sd_interval = v; auto_report_sd_interval = v;
next_sd_report_ms = millis() + 1000UL * v; next_sd_report_ms = millis() + 1000UL * v;