Skip to content

Commit cece127

Browse files
committed
Reduce frequncy of polling
1 parent 07096bd commit cece127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WeatherStationCoreLink/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,6 @@ def looprequest():
174174
if errorcount > 5: #If it's hit an error more than 5 times just reboot it
175175
reboot()
176176

177-
time.sleep(0.5) #Only take a reading every half second
177+
time.sleep(2) #Only take a reading every two seconds as the device itself only updates on roughly that frequency
178178

179179
log("[INFO] End of Program")

0 commit comments

Comments
 (0)