-
Notifications
You must be signed in to change notification settings - Fork 87
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
compile error #49
Comments
I am using the arduino CLI to compile. arduino-cli Version: 0.3.7-alpha.preview |
The target is a MKRWAN1300 that uses the SAMD21 mcu. |
same with stm32duino |
This library appears to have been written for the AVR compiler, which does not return any errors on this line. Atmel SAM compilers return an error. I was able to compile for an Adafruit Feather M0 by changing the offending line to include a cast, as follows: |
original:
hmmm...:
better:
|
Actually...that's a good point. Looking at the code, I think the author maybe intended to return an empty string - but instead effectively returned NULL. I'm not sure; I feel like it could go either way. |
Encountered the following error when attempting to compile a sketch using CmdMessenger:
The function is defined to return a pointer as follows;
Arduino-CmdMessenger/CmdMessenger.cpp
Line 484 in 8c3c444
Since the function is returning a char instead of a pointer, this is causing a compiler error.
Should the correct return value be NULL? ie:
return NULL;
The text was updated successfully, but these errors were encountered: