nmrr 2 سال پیش
والد
کامیت
765debccc0
3فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 5 1
      README.md
  2. BIN
      flipper_geiger.fap
  3. 1 1
      flipper_geiger/flipper_geiger.c

+ 5 - 1
README.md

@@ -56,7 +56,8 @@ The program will automatically be launched after compilation
 
 Press **Ok** button to clear the graph, press **Left/Right** to choose unit (cpm, μSv/h, mSv/y, Rad/h, mRad/h, uRad/h), press **Back** button to quit
 
-If you don't want to build this application, just simply copy **flipper_geiger.fap** on your **Flipper Zero**
+If you don't want to build this application, just simply copy **flipper_geiger.fap** on your **Flipper Zero** 
+**API Mismatch** error may appear. If you are using Unleashed firmware you can bypass and ignore the error
 
 ## Use cases
 
@@ -105,6 +106,9 @@ Here are some nice ideas to improve this app :
 
 ## Changelog
 
+* 2023-06-08
+  * Bug fixing
+
 * 2023-04-11
   * More usable/unusable sources
   * Rad unit has been added

BIN
flipper_geiger.fap


+ 1 - 1
flipper_geiger/flipper_geiger.c

@@ -81,7 +81,7 @@ static void clock_tick(void* ctx) {
     randomNumber &= 0xFFF;
     if (randomNumber == 0) randomNumber = 1;
 
-    furi_hal_pwm_start(FuriHalPwmOutputIdLptim2PA4, randomNumber, 50);
+    furi_hal_pwm_set_params(FuriHalPwmOutputIdLptim2PA4, randomNumber, 50);
 
     FuriMessageQueue* queue = ctx;
     EventApp event = {.type = ClockEventTypeTick};