quen0n 1 год назад
Родитель
Сommit
334b94d1f7
5 измененных файлов с 6 добавлено и 4 удалено
  1. 3 0
      CHANGELOG.md
  2. 1 1
      README_CATALOG.md
  3. 0 1
      application.fam
  4. 1 1
      unitemp.h
  5. 1 1
      views/General_view.c

+ 3 - 0
CHANGELOG.md

@@ -1,4 +1,7 @@
 # Unitemp changelog
 # Unitemp changelog
+## Unitemp 1.4
+- Remove version value from application manifest
+- Small fix (Thanks for JamesDavid)
 ## Unitemp 1.3
 ## Unitemp 1.3
 - New FZ API satisfaction
 - New FZ API satisfaction
 ## Unitemp 1.2
 ## Unitemp 1.2

+ 1 - 1
README_CATALOG.md

@@ -1,5 +1,5 @@
 # Unitemp - Universal temperature sensor reader
 # Unitemp - Universal temperature sensor reader
-[Flipper Zero](https://flipperzero.one/) application for reading temperature, humidity and pressure sensors like a DHT11/22, DS18B20, BMP280, HTU21 and more. 
+Application for reading temperature, humidity and pressure sensors like a DHT11/22, DS18B20, BMP280, HTU21 and more. 
 ## List of supported sensors
 ## List of supported sensors
 - DHT11
 - DHT11
 - DHT12
 - DHT12

+ 0 - 1
application.fam

@@ -10,7 +10,6 @@ App(
     stack_size=2 * 1024,
     stack_size=2 * 1024,
     order=100,
     order=100,
     fap_description = "Application for reading temperature, humidity and pressure sensors like a DHT11/22, DS18B20, BMP280, HTU21 and more",
     fap_description = "Application for reading temperature, humidity and pressure sensors like a DHT11/22, DS18B20, BMP280, HTU21 and more",
-	fap_version="1.3",
     fap_author = "Quenon",
     fap_author = "Quenon",
     fap_weburl = "https://github.com/quen0n/Unitemp-Flipper-Zero-Plugin",
     fap_weburl = "https://github.com/quen0n/Unitemp-Flipper-Zero-Plugin",
     fap_category="GPIO",
     fap_category="GPIO",

+ 1 - 1
unitemp.h

@@ -40,7 +40,7 @@
 //Имя приложения
 //Имя приложения
 #define APP_NAME "Unitemp"
 #define APP_NAME "Unitemp"
 //Версия приложения
 //Версия приложения
-#define UNITEMP_APP_VER "1.2"
+#define UNITEMP_APP_VER "1.4-store"
 //Путь хранения файлов плагина
 //Путь хранения файлов плагина
 #define APP_PATH_FOLDER "/ext/unitemp"
 #define APP_PATH_FOLDER "/ext/unitemp"
 //Имя файла с настройками
 //Имя файла с настройками

+ 1 - 1
views/General_view.c

@@ -123,7 +123,7 @@ static void _draw_pressure(Canvas* canvas, Sensor* sensor) {
     canvas_draw_icon(canvas, x + 3, y + 4, &I_pressure_7x13);
     canvas_draw_icon(canvas, x + 3, y + 4, &I_pressure_7x13);
 
 
     int16_t press_int = sensor->pressure;
     int16_t press_int = sensor->pressure;
-    int8_t press_dec = (int16_t)(sensor->temp * 10) % 10;
+    int8_t press_dec = (int16_t)(sensor->pressure * 10) % 10;
 
 
     //Целая часть давления
     //Целая часть давления
     snprintf(app->buff, BUFF_SIZE, "%d", press_int);
     snprintf(app->buff, BUFF_SIZE, "%d", press_int);