Add A32U4 check

This commit is contained in:
Just Call Me Koko
2021-04-13 21:32:05 -04:00
parent 3f3b784d47
commit e3de597e0a
3 changed files with 34 additions and 1 deletions

View File

@@ -809,7 +809,7 @@ void MenuFunctions::RunSetup()
addNodes(&mainMenu, "Bluetooth", TFT_CYAN, NULL, BLUETOOTH, [this]() {
changeMenu(&bluetoothMenu);
});
addNodes(&mainMenu, "Bad USB", TFT_RED, NULL, BAD_USB_ICO, [this]() {
if (a32u4_obj.supported) addNodes(&mainMenu, "Bad USB", TFT_RED, NULL, BAD_USB_ICO, [this]() {
changeMenu(&badusbMenu);
});
addNodes(&mainMenu, "General Apps", TFT_MAGENTA, NULL, GENERAL_APPS, [this]() {