diff --git a/menu/menu_driver.c b/menu/menu_driver.c index 3ef215ed66..51982f59ec 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -342,16 +342,6 @@ bool menu_driver_alive(void) return menu_alive; } -static void menu_driver_set_alive(void) -{ - menu_alive = true; -} - -static void menu_driver_unset_alive(void) -{ - menu_alive = false; -} - void menu_driver_toggle(bool latch) { const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr(); @@ -359,10 +349,7 @@ void menu_driver_toggle(bool latch) if (driver->toggle) driver->toggle(latch); - if (latch) - menu_driver_set_alive(); - else - menu_driver_unset_alive(); + menu_alive = latch; } bool menu_driver_load_image(void *data, menu_image_type_t type)