Skip to content

Commit cbc1a35

Browse files
committed
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
1 parent 17af90b commit cbc1a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Two_Way_Servo_Telegraph/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def get_position():
101101

102102
while True:
103103
# check IO for new data every 5 seconds
104-
if (time.monotonic() - clock) > 2:
104+
if (time.monotonic() - clock) > 5:
105105
# get data
106106
received_data = io.receive_data(in_feed["key"])
107107
# reset clock

0 commit comments

Comments
 (0)