MX 1 yıl önce
ebeveyn
işleme
03da99f6b4
2 değiştirilmiş dosya ile 11 ekleme ve 1 silme
  1. 1 1
      application.fam
  2. 10 0
      seader.c

+ 1 - 1
application.fam

@@ -42,7 +42,7 @@ App(
 )
 
 App(
-    appid="plugin_wiegand",
+    appid="seader_plugin_wiegand",
     apptype=FlipperAppType.PLUGIN,
     entry_point="plugin_wiegand_ep",
     requires=["seader"],

+ 10 - 0
seader.c

@@ -1,4 +1,5 @@
 #include "seader_i.h"
+#include <expansion/expansion.h>
 
 #define TAG "Seader"
 
@@ -229,6 +230,11 @@ void seader_show_loading_popup(void* context, bool show) {
 
 int32_t seader_app(void* p) {
     UNUSED(p);
+
+    // Disable expansion protocol to avoid interference with UART Handle
+    Expansion* expansion = furi_record_open(RECORD_EXPANSION);
+    expansion_disable(expansion);
+
     Seader* seader = seader_alloc();
 
     scene_manager_next_scene(seader->scene_manager, SeaderSceneStart);
@@ -237,5 +243,9 @@ int32_t seader_app(void* p) {
 
     seader_free(seader);
 
+    // Return previous state of expansion
+    expansion_enable(expansion);
+    furi_record_close(RECORD_EXPANSION);
+
     return 0;
 }