Selaa lähdekoodia

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

somehibs 2 vuotta sitten
vanhempi
commit
3f6c8d5dc5
No account linked to committer's email address
3 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1
    1
      Marlin/src/core/serial.h
  2. 1
    1
      Marlin/src/gcode/queue.cpp
  3. 1
    1
      Marlin/src/libs/autoreport.h

+ 1
- 1
Marlin/src/core/serial.h Näytä tiedosto

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

+ 1
- 1
Marlin/src/gcode/queue.cpp Näytä tiedosto

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

+ 1
- 1
Marlin/src/libs/autoreport.h Näytä tiedosto

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

Loading…
Peruuta
Tallenna