Commit 8b02630
committed
If I understand the comment in the while loop correctly, the purpose of
the while loop here is to throw away everything which is sent by the
sender to empty the UART buffer, and wait until a timeout occurs (`if
data is None`, i.e. everything is sent, end of the current packet).
However, due to the `assert`, the loop terminates after the first byte,
unless it timeouts (which will most probably not be the case on current
connections).
Fixes #27
1 parent 8897636 commit 8b02630
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
564 | 563 | | |
565 | 564 | | |
566 | 565 | | |
| |||
0 commit comments