Changed reading code to take responses entire blocks at a time

This commit is contained in:
Adam Boardman 2020-12-17 14:35:57 +00:00
parent afcfde4b7b
commit 7c042ef3ed

View file

@ -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)