Fix timer priority api in apps

This commit is contained in:
Willy-JL
2023-11-12 07:42:28 +00:00
parent 0a1a853f9a
commit 782e9eba79
8 changed files with 17 additions and 26 deletions

View File

@@ -197,15 +197,14 @@ void picopass_blink_stop(Picopass* picopass) {
void picopass_show_loading_popup(void* context, bool show) {
Picopass* picopass = context;
TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
if(show) {
// Raise timer priority so that animations can play
vTaskPrioritySet(timer_task, configMAX_PRIORITIES - 1);
furi_timer_set_thread_priority(FuriTimerThreadPriorityElevated);
view_dispatcher_switch_to_view(picopass->view_dispatcher, PicopassViewLoading);
} else {
// Restore default timer priority
vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
}
}