Browse Source

Bug-Fix: gradient_monitor initialisation

spike_filter
Dirk Alders 4 years ago
parent
commit
740a720c82
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      dht.py

+ 2
- 2
dht.py View 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…
Cancel
Save