瀏覽代碼

Use MYSERIAL0 (not SerialUSB) for Malyan LCD

Scott Lahteine 4 年之前
父節點
當前提交
10f7bbee32
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/src/lcd/extui_malyan_lcd.cpp

+ 2
- 2
Marlin/src/lcd/extui_malyan_lcd.cpp 查看文件

@@ -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…
取消
儲存