فهرست منبع

Merge wiiec from https://github.com/xMasterX/all-the-plugins

Willy-JL 2 سال پیش
والد
کامیت
a0895c868c
2فایلهای تغییر یافته به همراه32 افزوده شده و 36 حذف شده
  1. 28 32
      wiiec/application.fam
  2. 4 4
      wiiec/wii_anal.c

+ 28 - 32
wiiec/application.fam

@@ -1,36 +1,32 @@
 # qv. https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/AppManifests.md
 # qv. https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/AppManifests.md
 
 
 App(
 App(
-	# --- App Info
-	appid="wii_ec_anal",
-	name="[WII] EC Analyser",
-
-	# --- Entry point
-	apptype=FlipperAppType.EXTERNAL,
-	entry_point="wii_ec_anal",
-
-	# --- Interaction
-	cdefines=["APP_WII_EC_ANAL"],
-	requires=[
-		"gui",
-	],
-
-#	conflicts="",
-#	sdk_headers="",
-
-	# --- Run-time info
-	stack_size=2 * 1024,
-	order=20,
-
-	# --- FAP details
-	sources=["wii_*.c", "gfx/*.c"],
-
-#	fap_weburl="https://github.com/csBlueChip/FlipperZero_plugin_WiiChuck/",
-#	fap_author="BlueChip",
-
-#	fap_description="Wii Extension Controller Protocol Analyser",
-#	fap_version=(1,0),
-
-	fap_icon="WiiEC.png",
-	fap_category="GPIO",
+    # --- App Info
+    appid="wii_ec_anal",
+    name="[WII] EC Analyser",
+    # --- Entry point
+    apptype=FlipperAppType.EXTERNAL,
+    entry_point="wii_ec_anal",
+    # --- Interaction
+    cdefines=["APP_WII_EC_ANAL"],
+    requires=[
+        "gui",
+    ],
+    # 	conflicts="",
+    # 	sdk_headers="",
+    # --- Run-time info
+    stack_size=2 * 1024,
+    order=20,
+    # --- FAP details
+    sources=["wii_*.c", "gfx/*.c"],
+    # 	fap_weburl="https://github.com/csBlueChip/FlipperZero_plugin_WiiChuck/",
+    # 	fap_author="BlueChip",
+    # 	fap_description="Wii Extension Controller Protocol Analyser",
+    # 	fap_version=(1,0),
+    fap_icon="WiiEC.png",
+    fap_category="GPIO",
+    fap_author="@csBlueChip",
+    fap_weburl="https://github.com/csBlueChip/FlipperZero_WiiEC",
+    fap_version="1.0",
+    fap_description="Application to test Wii Extension Controllers.",
 )
 )

+ 4 - 4
wiiec/wii_anal.c

@@ -387,7 +387,7 @@ int32_t wii_ec_anal(void) {
     // ==================== Main event loop ====================
     // ==================== Main event loop ====================
 
 
     if(state->run) do {
     if(state->run) do {
-            // bool        redraw = false;
+            //bool redraw = false;
             FuriStatus status = FuriStatusErrorTimeout;
             FuriStatus status = FuriStatusErrorTimeout;
 
 
             // Wait for a message
             // Wait for a message
@@ -473,14 +473,14 @@ int32_t wii_ec_anal(void) {
                 break;
                 break;
             }
             }
 
 
-            // *** Update the GUI screen via the viewport ***
-            view_port_update(vpp);
-
             // *** Try to release the plugin state variables ***
             // *** Try to release the plugin state variables ***
             if(furi_mutex_release(state->mutex) != FuriStatusOk) {
             if(furi_mutex_release(state->mutex) != FuriStatusOk) {
                 ERROR(wii_errs[(error = ERR_MUTEX_RELEASE)]);
                 ERROR(wii_errs[(error = ERR_MUTEX_RELEASE)]);
                 goto bail;
                 goto bail;
             }
             }
+
+            // *** Update the GUI screen via the viewport ***
+            view_port_update(vpp);
         } while(state->run);
         } while(state->run);
 
 
     // ===== Game Over =====
     // ===== Game Over =====