Refactor serial class with templates (#20783)

This commit is contained in:
X-Ryl669 authored and Scott Lahteine committed 2021-04-29 08:45:12 -05:00
1 parent 8da8e7d17b
commit efa1e56369
64 files changed
+782 -948

No files matched your search

+2 -2
View File
@@ -414,8 +414,8 @@ void update_usb_status(const bool forceUpdate) {
// This is mildly different than stock, which
// appears to use the usb discovery status.
// This is more logical.
if (last_usb_connected_status != MYSERIAL0 || forceUpdate) {
last_usb_connected_status = MYSERIAL0;
if (last_usb_connected_status != MYSERIAL0.connected() || forceUpdate) {
last_usb_connected_status = MYSERIAL0.connected();
write_to_lcd_P(last_usb_connected_status ? PSTR("{R:UC}\r\n") : PSTR("{R:UD}\r\n"));
}
}