Skip to content

Commit 1f5e120

Browse files
chrisrukgrega
authored andcommitted
Increase timer
Bump timer from 8s to 11s, to wait after receiving "Done initialising ports", to avoid geting disconnected message, even though sensor connected to port.
1 parent b2ca18d commit 1f5e120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildhat/serinterface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def loop(self, cond, uselist, q, listevt):
378378
def runit():
379379
with cond:
380380
cond.notify()
381-
t = Timer(8.0, runit)
381+
t = Timer(11.0, runit)
382382
t.start()
383383

384384
if line[0] == "P" and (line[2] == "C" or line[2] == "M"):

0 commit comments

Comments
 (0)