Skip to content

remove stray assert False in order to fix #27 #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2017

Conversation

rohieb
Copy link
Contributor

@rohieb rohieb commented May 22, 2017

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

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 tehmaze#27
@coveralls
Copy link

coveralls commented May 22, 2017

Coverage Status

Coverage increased (+0.2%) to 67.742% when pulling 8b02630 on rohieb:issue-27-fix-retransmission into 8897636 on tehmaze:master.

@ghost
Copy link

ghost commented May 22, 2017

Approved for merge, I should be able to bump and release to pypi in 10 or so hours when I get home to the computer with the necessary access.

@jquast jquast merged commit 13f7559 into tehmaze:master May 23, 2017
@jquast
Copy link
Collaborator

jquast commented May 23, 2017

Okie dokie, merged to master and published to pypi. Thanks a bunch!

@rohieb
Copy link
Contributor Author

rohieb commented May 23, 2017

Yay, thanks \o/

rohieb added a commit to rohieb/labgrid that referenced this pull request May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants