mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 13:38:36 -07:00
Fix timer priority api in apps
This commit is contained in:
@@ -21,15 +21,14 @@ void mifare_nested_tick_event_callback(void* context) {
|
||||
|
||||
void mifare_nested_show_loading_popup(void* context, bool show) {
|
||||
MifareNested* mifare_nested = 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(mifare_nested->view_dispatcher, MifareNestedViewLoading);
|
||||
} else {
|
||||
// Restore default timer priority
|
||||
vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
|
||||
furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user