Sfoglia il codice sorgente

Bug-Fix: gradient_monitor initialisation

spike_filter
Dirk Alders 3 anni fa
parent
commit
740a720c82
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      dht.py

+ 2
- 2
dht.py Vedi File

@@ -28,8 +28,8 @@ class dht_22(background_task):
28 28
     def __init__(self, gpio, data_callback=None):
29 29
         self.__data_callback__ = data_callback
30 30
 
31
-        self.__temp_monitor__ = gradient_monitor(.5, 'DHT Temperature')
32
-        self.__hum_monitor__ = gradient_monitor(5, 'DHT Humidity')
31
+        self.__temp_monitor__ = gradient_monitor(.5)
32
+        self.__hum_monitor__ = gradient_monitor(5)
33 33
         self.__monitor__ = dht_22_monitor(300)
34 34
         # Initial the dht device, with data pin connected to:
35 35
         if not DEBUG:

Loading…
Annulla
Salva