Просмотр исходного кода

Mass app fixes for new API

Thanks @Willy-JL for finding issues and fixing many of those apps
Other apps fixed by me
MX 2 лет назад
Родитель
Сommit
422bf4f0b4
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      uhf_app.c

+ 2 - 3
uhf_app.c

@@ -182,15 +182,14 @@ void uhf_blink_stop(UHFApp* uhf_app) {
 
 
 void uhf_show_loading_popup(void* ctx, bool show) {
 void uhf_show_loading_popup(void* ctx, bool show) {
     UHFApp* uhf_app = ctx;
     UHFApp* uhf_app = ctx;
-    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(uhf_app->view_dispatcher, UHFViewLoading);
         view_dispatcher_switch_to_view(uhf_app->view_dispatcher, UHFViewLoading);
     } else {
     } else {
         // Restore default timer priority
         // Restore default timer priority
-        vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
+        furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
     }
     }
 }
 }