Skip to content

Commit fe1b57a

Browse files
Williangalvanipatrickelectric
authored andcommitted
generate: add tiny sleep after send_break()
1 parent 2d3a3cb commit fe1b57a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

generate/templates/device.py.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class PingDevice(object):
5151
# /dev/ttyAMA0 on Raspberry Pis, this raises an exception instead.
5252
self.iodev = serial.Serial(device_name, baudrate, write_timeout=1.0)
5353
self.iodev.send_break()
54+
time.sleep(0.001)
5455
self.iodev.write("U".encode("ascii"))
5556

5657
except Exception as exception:

0 commit comments

Comments
 (0)