Updating value in code.py
Just caught a minor value error that was left in the loop from testing. Should be polling IO every 5 seconds, not 2
This commit is contained in:
parent
17af90beee
commit
cbc1a359dc
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ clock = 5
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
# check IO for new data every 5 seconds
|
# check IO for new data every 5 seconds
|
||||||
if (time.monotonic() - clock) > 2:
|
if (time.monotonic() - clock) > 5:
|
||||||
# get data
|
# get data
|
||||||
received_data = io.receive_data(in_feed["key"])
|
received_data = io.receive_data(in_feed["key"])
|
||||||
# reset clock
|
# reset clock
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue