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
If the Arduino Compiler Warnings option is set to YES, the following warning is generated -
C:\Users\grh\Google Drive\Arduino\libraries\DmxSerial2\src\DMXSerial2.cpp: In member function 'uint8_t DMXSerialClass2::readRelative(unsigned int)': C:\Users\grh\Google Drive\Arduino\libraries\DmxSerial2\src\DMXSerial2.cpp:395:16: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] if ((channel >= 0) && (channel < _initData->footprint)) { ^
This occurs because channel is declared as unsigned int.
The fix is simply to change the statement to
if (channel < _initData->footprint) {
The text was updated successfully, but these errors were encountered:
See the discussion here #18 (comment)
In this case you probably want to add a comment saying what the old test was and maybe why it's been removed.
Sorry, something went wrong.
Good suggestion. I added a comment. This change has no effect on code size - I assume the compiler removed it already during optimization. 150d485
Thanks.
No branches or pull requests
If the Arduino Compiler Warnings option is set to YES, the following warning is generated -
This occurs because channel is declared as unsigned int.
The fix is simply to change the statement to
The text was updated successfully, but these errors were encountered: