Skip to content

Commit

Permalink
Merge branch 'master' into 94-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
steko authored Nov 8, 2020
2 parents 7bc8c1d + ee3c067 commit 7eae4d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/totalopenstation-gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,14 +742,14 @@ def connect(self):
sleep(sleeptime)
n = mc.inWaiting()
result = mc.read(n)
self.replace_text(result.encode())
self.replace_text(result.decode())
sleep(sleeptime)

while mc.inWaiting() > 0:
newdata = mc.read(mc.inWaiting())
result += newdata
self.status.set(_('Downloaded %d bytes'), len(result))
self.replace_text(result.encode())
self.replace_text(result.decode())
sleep(sleeptime) # TODO determine sleep time from baudrate
mc.close()
showinfo(_('Success!'),
Expand Down

0 comments on commit 7eae4d7

Please sign in to comment.