Skip to content

Conversation

@bobobo1618
Copy link

Error handling: Make sure that if something breaks, the user can choose to address it somehow. I mainly cared about CRC checking because I occasionally saw garbage data.

Remove WProgram.h: This seems to be from an ancient version of Arduino and it breaks compilation when I embed this library in an ESP-IDF component (for the Espressif ESP32).

@nseidle
Copy link
Member

nseidle commented Jan 22, 2020

I'm very late getting to this PR but I really like it. Thank you! The CRC check is especially good. I'll merge here shortly.

For future reference, we avoid putting Serial.print statements inside a library. If a user hasn't done a Serial.begin or if they don't have Serial at all (think ATtinys) then a Serial.print can cause their platform to crash. So I'll remove those before pushing a new version.

@nseidle nseidle merged commit ee27ac1 into sparkfun:master Jan 22, 2020
@nseidle
Copy link
Member

nseidle commented Feb 24, 2020

Thanks for this PR. FYI it broke the library. My fault, I should have been looking at the PR more closely.

Don't put Serial.prints in a library. See this post.

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