Changed reading code to take responses entire blocks at a time
This commit is contained in:
parent
afcfde4b7b
commit
7c042ef3ed
1 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,8 @@ def uploadReadFromSerial():
|
|||
print('[230400]Listening...')
|
||||
while isRunning:
|
||||
uploadResponse = socket.read()
|
||||
if socket.in_waiting > 0:
|
||||
uploadResponse += socket.read(socket.in_waiting)
|
||||
print('[230400]Response', uploadResponse)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue