Simplify power supply naming logic (#14488)

Co-Authored-By: Tim Moore <tim.moore@lightbend.com>
Co-Authored-By: AnHardt <github@kitelab.de>
This commit is contained in:
Tim Moore
2019-07-04 23:58:34 -07:00
committed by Scott Lahteine
parent 44e4f853c8
commit eb6dec03bd
119 changed files with 1141 additions and 1460 deletions

View File

@ -176,13 +176,7 @@ void menu_info_board() {
STATIC_ITEM(BOARD_NAME, true, true); // MyPrinterController
STATIC_ITEM(MSG_INFO_BAUDRATE ": " STRINGIFY(BAUDRATE), true); // Baud: 250000
STATIC_ITEM(MSG_INFO_PROTOCOL ": " PROTOCOL_VERSION, true); // Protocol: 1.0
#if POWER_SUPPLY == 0
STATIC_ITEM(MSG_INFO_PSU ": Generic", true);
#elif POWER_SUPPLY == 1
STATIC_ITEM(MSG_INFO_PSU ": ATX", true); // Power Supply: ATX
#elif POWER_SUPPLY == 2
STATIC_ITEM(MSG_INFO_PSU ": XBox", true); // Power Supply: XBox
#endif
STATIC_ITEM(MSG_INFO_PSU ": " PSU_NAME, true);
END_SCREEN();
}