Browse Source

Update for TaskHandle_t change

Eric Betts 2 years ago
parent
commit
eb853d6fb0
1 changed files with 2 additions and 3 deletions
  1. 2 3
      seader.c

+ 2 - 3
seader.c

@@ -179,15 +179,14 @@ void seader_blink_stop(Seader* seader) {
 
 
 void seader_show_loading_popup(void* context, bool show) {
 void seader_show_loading_popup(void* context, bool show) {
     Seader* seader = context;
     Seader* seader = context;
-    TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
 
 
     if(show) {
     if(show) {
         // Raise timer priority so that animations can play
         // 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(seader->view_dispatcher, SeaderViewLoading);
         view_dispatcher_switch_to_view(seader->view_dispatcher, SeaderViewLoading);
     } else {
     } else {
         // Restore default timer priority
         // Restore default timer priority
-        vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
+        furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
     }
     }
 }
 }