Explorar el Código

fix for latest API

MX hace 1 año
padre
commit
53cf805358
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      lib/nfclegacy/ST25RFAL002/platform.c

+ 1 - 2
lib/nfclegacy/ST25RFAL002/platform.c

@@ -48,8 +48,7 @@ void platformSetIrqCallback(PlatformIrqCallback callback) {
 
 
     if(!rfal_platform.thread) {
     if(!rfal_platform.thread) {
         rfal_platform.thread =
         rfal_platform.thread =
-            furi_thread_alloc_ex("RfalIrqDriver", 1024, rfal_platform_irq_thread, NULL);
-        furi_thread_mark_as_service(rfal_platform.thread);
+            furi_thread_alloc_service("RfalIrqDriver", 1024, rfal_platform_irq_thread, NULL);
         furi_thread_set_priority(rfal_platform.thread, FuriThreadPriorityIsr);
         furi_thread_set_priority(rfal_platform.thread, FuriThreadPriorityIsr);
         furi_thread_start(rfal_platform.thread);
         furi_thread_start(rfal_platform.thread);
     }
     }