Explorar el Código

Mass app fixes for new API

Thanks @Willy-JL for finding issues and fixing many of those apps
Other apps fixed by me
MX hace 2 años
padre
commit
c973519f49
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      scenes/evil_portal_scene_select_html.c

+ 2 - 3
scenes/evil_portal_scene_select_html.c

@@ -2,17 +2,16 @@
 #include "../helpers/evil_portal_storage.h"
 
 void evil_portal_show_loading_popup(Evil_PortalApp* app, bool show) {
-    TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
     ViewStack* view_stack = app->view_stack;
     Loading* loading = app->loading;
     if(show) {
         // Raise timer priority so that animations can play
-        vTaskPrioritySet(timer_task, configMAX_PRIORITIES - 1);
+        furi_timer_set_thread_priority(FuriTimerThreadPriorityElevated);
         view_stack_add_view(view_stack, loading_get_view(loading));
     } else {
         view_stack_remove_view(view_stack, loading_get_view(loading));
         // Restore default timer priority
-        vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
+        furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
     }
 }