We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
It seems there is a problem in XNetMaster.cpp @ 546, there is no NULL check before calling notifyXNetFeedback:
notifyXNetFeedback
for (byte i = 1; i <= len; i++) { notifyXNetFeedback((XNetRXBuffer.msg[XNetRXBuffer.get].data[XNetheader+(i*2)-1] << 2) | ((XNetRXBuffer.msg[XNetRXBuffer.get].data[XNetheader+(i*2)] & B110) >> 1), XNetRXBuffer.msg[XNetRXBuffer.get].data[XNetheader+(i*2)]); }
Everything is fine if the notify is defined, however if not defined it will crash.
Possible fix:
if(notifyXNetFeedback){ for (byte i = 1; i <= len; i++) { notifyXNetFeedback((XNetRXBuffer.msg[XNetRXBuffer.get].data[XNetheader+(i*2)-1] << 2) | ((XNetRXBuffer.msg[XNetRXBuffer.get].data[XNetheader+(i*2)] & B110) >> 1), XNetRXBuffer.msg[XNetRXBuffer.get].data[XNetheader+(i*2)]); } }
Cheers, CPM
The text was updated successfully, but these errors were encountered:
Fix implementet with v4.1.0
Sorry, something went wrong.
No branches or pull requests
Hi,
It seems there is a problem in XNetMaster.cpp @ 546, there is no NULL check before calling
notifyXNetFeedback
:Everything is fine if the notify is defined, however if not defined it will crash.
Possible fix:
Cheers,
CPM
The text was updated successfully, but these errors were encountered: