Distinguish serial index from mask (#21287)

This commit is contained in:
X-Ryl669 authored and GitHub committed 2021-03-09 03:20:37 -06:00
1 parent 2f1fd4bbaa
commit 55c31fbe9a
14 files changed
+135 -101

No files matched your search

+2 -2
View File
@@ -28,8 +28,8 @@ struct AutoReporter {
millis_t next_report_ms;
uint8_t report_interval;
#if HAS_MULTI_SERIAL
serial_index_t report_port_mask;
AutoReporter() : report_port_mask(SERIAL_ALL) {}
SerialMask report_port_mask;
AutoReporter() : report_port_mask(SerialMask::All) {}
#endif
inline void set_interval(uint8_t seconds, const uint8_t limit=60) {