Explorar el Código

Fixed AM2320 loading

Victor hace 3 años
padre
commit
41ff3dea1c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      interfaces/SingleWireSensor.c

+ 2 - 1
interfaces/SingleWireSensor.c

@@ -47,7 +47,8 @@ const SensorType DHT22 = {
     .deinitializer = unitemp_singlewire_deinit,
     .deinitializer = unitemp_singlewire_deinit,
     .updater = unitemp_singlewire_update};
     .updater = unitemp_singlewire_update};
 const SensorType AM2320_SW = {
 const SensorType AM2320_SW = {
-    .typename = "AM2320 (1W)",
+    .typename = "AM2320",
+    .altname = "AM2320 (single wire)",
     .interface = &SINGLE_WIRE,
     .interface = &SINGLE_WIRE,
     .datatype = UT_DATA_TYPE_TEMP_HUM,
     .datatype = UT_DATA_TYPE_TEMP_HUM,
     .pollingInterval = 2000,
     .pollingInterval = 2000,