Parcourir la source

Merge pull request #1 from ezod/update-api-72

Update for API 7.2
Felix Pankratz il y a 3 ans
Parent
commit
64e2a042c5
4 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 1 1
      README.md
  2. 2 1
      application.fam
  3. 3 0
      bpm.c
  4. BIN
      icons/DolphinCommon_56x48.png

+ 1 - 1
README.md

@@ -9,6 +9,6 @@ Hit any button other than back repeatedly. Calculates based on the average of th
 ## Compiling
 
 ```
-./fbt firmware_bpm_tapper
+./fbt fap_bpm_tapper
 ```
 

+ 2 - 1
application.fam

@@ -1,12 +1,13 @@
 App(
     appid="bpm_tapper",
     name="BPM Tapper",
-    apptype=FlipperAppType.PLUGIN,
+    apptype=FlipperAppType.EXTERNAL,
     entry_point="bpm_tapper_app",
     cdefines=["APP_BPM_TAPPER"],
     requires=["gui"],
     stack_size=2 * 1024,
     fap_icon="bpm_10px.png",
+    fap_icon_assets="icons",
     fap_category="Music",
     order=35,
 )

+ 3 - 0
bpm.c

@@ -5,6 +5,7 @@
 #include <input/input.h>
 #include <m-string.h>
 #include <stdlib.h>
+#include "bpm_tapper_icons.h"
 
 typedef enum {
     EventTypeTick,
@@ -237,6 +238,8 @@ int32_t bpm_tapper_app(void* p) {
                 // Exit the plugin
                 processing = false;
                 break;
+            default:
+                break;
           }
         }
       } 

BIN
icons/DolphinCommon_56x48.png