mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-03 04:15:53 +00:00
fix merge error
This commit is contained in:
parent
0e1872398a
commit
6cdb92b7a8
@ -483,7 +483,7 @@ void menuHandler::positionBaseMenu()
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
optionsArrayPtr = optionsArray;
|
||||
bannerOptions.optionsArrayPtr = optionsArray;
|
||||
options = 3;
|
||||
}
|
||||
BannerOverlayOptions bannerOptions;
|
||||
@ -502,14 +502,16 @@ void menuHandler::positionBaseMenu()
|
||||
} else if (selected == CompassCalibrate) {
|
||||
accelerometerThread->calibrate(30);
|
||||
#endif
|
||||
else {
|
||||
else
|
||||
{
|
||||
menuQueue = menu_none;
|
||||
}
|
||||
};
|
||||
screen->showOverlayBanner(bannerOptions);
|
||||
}
|
||||
|
||||
void menuHandler::nodeListMenu()
|
||||
void
|
||||
menuHandler::nodeListMenu()
|
||||
{
|
||||
enum optionsNumbers { Back, Favorite, TraceRoute, Verify, Reset, enumEnd };
|
||||
static const char *optionsArray[] = {"Back", "Add Favorite", "Trace Route", "Key Verification", "Reset NodeDB"};
|
||||
@ -840,7 +842,8 @@ void menuHandler::shutdownMenu()
|
||||
bannerOptions.optionsCount = 2;
|
||||
bannerOptions.bannerCallback = [](int selected) -> void {
|
||||
if (selected == 1) {
|
||||
InputEvent event = {.inputEvent = (input_broker_event)INPUT_BROKER_SHUTDOWN, .kbchar = 0, .touchX = 0, .touchY = 0};
|
||||
InputEvent event = {
|
||||
.inputEvent = (input_broker_event)INPUT_BROKER_SHUTDOWN, .kbchar = 0, .touchX = 0, .touchY = 0};
|
||||
inputBroker->injectInputEvent(&event);
|
||||
} else {
|
||||
menuQueue = power_menu;
|
||||
|
Loading…
Reference in New Issue
Block a user