1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 12:04:19 +00:00

🐛 Fix serial PORT_RESTORE (and BUFFER_MONITORING) (#23022)

This commit is contained in:
somehibs 2021-10-27 21:00:02 +01:00 committed by GitHub
parent 2199ae77c8
commit 3f6c8d5dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ extern uint8_t marlin_debug_flags;
// interface with the ability to output to multiple serial ports.
#if HAS_MULTI_SERIAL
#define _PORT_REDIRECT(n,p) REMEMBER(n,multiSerial.portMask,p)
#define _PORT_RESTORE(n,p) RESTORE(n)
#define _PORT_RESTORE(n) RESTORE(n)
#define SERIAL_ASSERT(P) if (multiSerial.portMask!=(P)) { debugger(); }
// If we have a catchall, use that directly
#ifdef SERIAL_CATCHALL

View File

@ -719,7 +719,7 @@ void GCodeQueue::advance() {
if (auto_buffer_report_interval && ELAPSED(ms, next_buffer_report_ms)) {
next_buffer_report_ms = ms + 1000UL * auto_buffer_report_interval;
PORT_REDIRECT(SERIAL_BOTH);
PORT_REDIRECT(SerialMask::All);
report_buffer_statistics();
PORT_RESTORE();
}

View File

@ -44,7 +44,7 @@ struct AutoReporter {
next_report_ms = ms + SEC_TO_MS(report_interval);
PORT_REDIRECT(report_port_mask);
Helper::report();
//PORT_RESTORE();
PORT_RESTORE();
}
}
};