Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

a little cleanup and remove a line that would cause an exception #336

Merged
merged 1 commit into from
Aug 24, 2017

Conversation

rbaynes
Copy link
Contributor

@rbaynes rbaynes commented Aug 24, 2017

New serial_close() function and some cleanup.
One exception causing line removed.
Extending @goruck 's awesome fixes.

@rbaynes rbaynes requested a review from sp4ghet August 24, 2017 14:31
@rbaynes rbaynes self-assigned this Aug 24, 2017
@@ -392,7 +400,6 @@ def connect_serial(serial_connection=None):
# Fix issue #328, sometimes serial_connection is None because of a
# serial port path / or error opening issue.
if serial_connection is None:
serial_connection.close() # Forces DTS on reconnect to reset Arduino
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since serial_connection is None here, this line would have thrown an Exception.

@rbaynes rbaynes merged commit e1643c1 into develop Aug 24, 2017
@rbaynes rbaynes deleted the serial_fix_cleanup branch August 24, 2017 15:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants