Commit cc2f6efe authored by Tom Hartley's avatar Tom Hartley

Re-enabled watchdog

parent af8a67b3
......@@ -25,7 +25,7 @@ class DataPoint():
return formatString.format(self.value)
def mainUpload(stdscr):
#wdog = os.open('/dev/watchdog',os.O_RDWR)
wdog = os.open('/dev/watchdog',os.O_RDWR)
try:
bus = 0
......@@ -83,7 +83,7 @@ def mainUpload(stdscr):
# Continuously append data
while(True):
#os.write(wdog,"0")
os.write(wdog,"0")
datas = []
dht.get_data()
d = DataPoint(dht.temp(),"Temp-DHT","C",1,-1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment