Browse Source

Power Supply 0 as "General"

Tannoo 8 years ago
parent
commit
54173c80ad
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      Marlin/ultralcd.cpp

+ 7
- 7
Marlin/ultralcd.cpp View File

@@ -2696,13 +2696,13 @@ void kill_screen(const char* lcd_msg) {
2696 2696
       STATIC_ITEM(BOARD_NAME, true, true);                           // MyPrinterController
2697 2697
       STATIC_ITEM(MSG_INFO_BAUDRATE ": " STRINGIFY(BAUDRATE), true); // Baud: 250000
2698 2698
       STATIC_ITEM(MSG_INFO_PROTOCOL ": " PROTOCOL_VERSION, true);    // Protocol: 1.0
2699
-      #ifdef POWER_SUPPLY
2700
-        #if (POWER_SUPPLY == 1)
2701
-          STATIC_ITEM(MSG_INFO_PSU ": ATX", true);  // Power Supply: ATX
2702
-        #elif (POWER_SUPPLY == 2)
2703
-          STATIC_ITEM(MSG_INFO_PSU ": XBox", true); // Power Supply: XBox
2704
-        #endif
2705
-      #endif // POWER_SUPPLY
2699
+      #if POWER_SUPPLY == 0
2700
+        STATIC_ITEM(MSG_INFO_PSU ": Generic", true);
2701
+      #elif POWER_SUPPLY == 1
2702
+        STATIC_ITEM(MSG_INFO_PSU ": ATX", true);  // Power Supply: ATX
2703
+      #elif POWER_SUPPLY == 2
2704
+        STATIC_ITEM(MSG_INFO_PSU ": XBox", true); // Power Supply: XBox
2705
+      #endif
2706 2706
       END_SCREEN();
2707 2707
     }
2708 2708
 

Loading…
Cancel
Save