Skip to content
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

Prevent spamming UUIDs, remove RPI.GPIO module, add improved error handling and a cleanup method using atexit #197

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

ottk3
Copy link
Contributor

@ottk3 ottk3 commented Sep 12, 2018

The readCard() method will only return an UUID if it's got the correct length and wasn't returned last time to prevent stuttering caused by spamming unnecessary or wrong data. Add improved error handling for SerialExceptions and close the used ports using the Serial.closed() method registered with atexit. Remove unused RPi.GPIO module from code.

…dd improved error handling a cleanup method using atexit

The readCard method will only return an UUID if it's got the correct length and wasn't returned last time to prevent stuttering caused by spamming unnecessary or wrong data.
Add improved error handling for SerialExceptions and close the used ports using the Serial.closed() method registered with atexit.
Remove unused RPi.GPIO module from code.
@MiczFlor MiczFlor merged commit 7bc7005 into MiczFlor:develop Sep 13, 2018
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.

2 participants