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:
committed by
Scott Lahteine
parent
44e4f853c8
commit
eb6dec03bd
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user