Skip to content

Commit bc9f44c

Browse files
committed
Keep trying to reboot infintley
1 parent 9c07b7b commit bc9f44c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WeatherStationCoreLink/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def reboot():
2626
time.sleep(60) #Just in case that api call fails as it sometimes does
2727
os.system('curl -X POST --header "Content-Type:application/json" "' + rebooturl + '"')
2828
time.sleep(60) # Just in case that api call fails AGAIN as it sometimes does
29-
sys.exit() #This forces a container restart anyway
29+
reboot()
30+
return False
3031

3132
serialport = "/dev/ttyUSB0"
3233
baudrate = os.environ.get('baudRate', 19200) #Set the Baudrate to 19200 which is a nice default for the davis logger

0 commit comments

Comments
 (0)