Skip to content

Commit c3b07eb

Browse files
authored
Update api.py
1 parent 2d3e5d4 commit c3b07eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dorna/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,11 @@ def _baud(self, port_name):
339339
# baud
340340
try:
341341
for cmd in baud:
342+
time.sleep(0.5)
342343
#check_output(cmd, shell=True).decode()
343344

344-
sp = Popen(cmd.split(), shell=True, stdout=PIPE,stderr=PIPE, bufsize=1, universal_newlines=True)
345+
#sp = Popen(cmd.split(), shell=True, stdout=PIPE,stderr=PIPE, bufsize=1, universal_newlines=True)
346+
sp = Popen(cmd, shell=True, stdout=PIPE,stderr=PIPE, bufsize=1, universal_newlines=True)
345347
sp.communicate()
346348

347349
return True

0 commit comments

Comments
 (0)