Browse Source

Added SI70xx and SHT2x support

Victor 3 năm trước cách đây
mục cha
commit
8111d98dcd
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 2 1
      sensors/HTU21x.c
  2. 1 1
      unitemp.h

+ 2 - 1
sensors/HTU21x.c

@@ -20,6 +20,7 @@
 
 
 const SensorType HTU21x = {
 const SensorType HTU21x = {
     .typename = "HTU21x",
     .typename = "HTU21x",
+    .altname = "HTU21x/SI70xx/SHT2x",
     .interface = &I2C,
     .interface = &I2C,
     .datatype = UT_DATA_TYPE_TEMP_HUM,
     .datatype = UT_DATA_TYPE_TEMP_HUM,
     .pollingInterval = 250,
     .pollingInterval = 250,
@@ -45,7 +46,7 @@ bool unitemp_HTU21x_alloc(Sensor* sensor, char* args) {
 
 
     //Адреса на шине I2C (7 бит)
     //Адреса на шине I2C (7 бит)
     i2c_sensor->minI2CAdr = 0x40 << 1;
     i2c_sensor->minI2CAdr = 0x40 << 1;
-    i2c_sensor->maxI2CAdr = 0x40 << 1;
+    i2c_sensor->maxI2CAdr = 0x41 << 1;
     return true;
     return true;
 }
 }
 
 

+ 1 - 1
unitemp.h

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