Selaa lähdekoodia

Use MYSERIAL0 (not SerialUSB) for Malyan LCD

Scott Lahteine 4 vuotta sitten
vanhempi
commit
10f7bbee32
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      Marlin/src/lcd/extui_malyan_lcd.cpp

+ 2
- 2
Marlin/src/lcd/extui_malyan_lcd.cpp Näytä tiedosto

@@ -396,8 +396,8 @@ void update_usb_status(const bool forceUpdate) {
396 396
   // This is mildly different than stock, which
397 397
   // appears to use the usb discovery status.
398 398
   // This is more logical.
399
-  if (last_usb_connected_status != SerialUSB || forceUpdate) {
400
-    last_usb_connected_status = SerialUSB;
399
+  if (last_usb_connected_status != MYSERIAL0 || forceUpdate) {
400
+    last_usb_connected_status = MYSERIAL0;
401 401
     write_to_lcd_P(last_usb_connected_status ? PSTR("{R:UC}\r\n") : PSTR("{R:UD}\r\n"));
402 402
   }
403 403
 }

Loading…
Peruuta
Tallenna