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
Compiling with warnings enabled exposed a couple of expressions that will never evaluate to true because 0x01 will never equal 0x00 or 0x10
true
0x01
0x00
0x10
lib/megaTinyCore/megaavr/libraries/Wire/src/twi_pins.c: In function 'TWI0_usePullups': lib/megaTinyCore/megaavr/libraries/Wire/src/twi_pins.c:443:16: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 443 | if (true == (PORTMUX.CTRLB & PORTMUX_TWI0_bm)) { | ^~ lib/megaTinyCore/megaavr/libraries/Wire/src/twi_pins.c: In function 'TWI0_checkPinLevel': lib/megaTinyCore/megaavr/libraries/Wire/src/twi_pins.c:494:16: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 494 | if (true == (PORTMUX.CTRLB & PORTMUX_TWI0_bm)) { | ^~
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Compiling with warnings enabled exposed a couple of expressions that will never evaluate to
true
because0x01
will never equal0x00
or0x10
The text was updated successfully, but these errors were encountered: