From 1ddd4acd80558292ac64d7925b6d354b9a06e443 Mon Sep 17 00:00:00 2001 From: its your bedtime <23366927+itsyourbedtime@users.noreply.github.com> Date: Tue, 18 May 2021 12:40:22 +0300 Subject: [PATCH] [FL-1279] Remove unnecessary menu_event timer #461 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: あく --- applications/menu/menu_event.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/applications/menu/menu_event.c b/applications/menu/menu_event.c index 80512798..1e87b2a6 100644 --- a/applications/menu/menu_event.c +++ b/applications/menu/menu_event.c @@ -9,7 +9,6 @@ struct MenuEvent { osMessageQueueId_t mqueue; - osTimerId_t timeout_timer; }; void MenuEventimeout_callback(void* arg) { @@ -21,14 +20,8 @@ void MenuEventimeout_callback(void* arg) { MenuEvent* menu_event_alloc() { MenuEvent* menu_event = furi_alloc(sizeof(MenuEvent)); - menu_event->mqueue = osMessageQueueNew(MENU_MESSAGE_MQUEUE_SIZE, sizeof(MenuMessage), NULL); furi_check(menu_event->mqueue); - - menu_event->timeout_timer = - osTimerNew(MenuEventimeout_callback, osTimerOnce, menu_event, NULL); - furi_check(menu_event->timeout_timer); - return menu_event; } @@ -40,7 +33,6 @@ void menu_event_free(MenuEvent* menu_event) { void menu_event_activity_notify(MenuEvent* menu_event) { furi_assert(menu_event); - osTimerStart(menu_event->timeout_timer, 60000U); // 1m timeout, return to main } MenuMessage menu_event_next(MenuEvent* menu_event) { @@ -74,4 +66,4 @@ void menu_event_input_callback(InputEvent* input_event, void* context) { } osMessageQueuePut(menu_event->mqueue, &message, 0, osWaitForever); -} +} \ No newline at end of file