-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
onError callback #329
base: master
Are you sure you want to change the base?
onError callback #329
Conversation
onError callback
src/LoRa.h
Outdated
@@ -58,6 +58,7 @@ class LoRaClass : public Stream { | |||
#ifndef ARDUINO_SAMD_MKRWAN1300 | |||
void onReceive(void(*callback)(int)); | |||
void onTxDone(void(*callback)()); | |||
void onError(void(*callback)()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking this should be renamed to something more specific, for example: onCrcError
or onReceiveCrcError
.
Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please name it in accordance with the rest of the repo. No objections.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @artemen if you can address these minor changes I'll merge this PR and include in the next release, which I'd like to get to this week.
Thanks for this contribution, it will add some important insight to error conditions.
sorry for the bit of mess. let me know if I should do a different pull request or this one will do, thanks! |
Do you plan to merge this PR? |
added a callback to notify user about a failed CRC packet.