Skip to content
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

warning: statement has no effect if (flags.inverted == false){ !flags.currentRawState; } #3

Open
ahermida69 opened this issue Sep 18, 2024 · 0 comments

Comments

@ahermida69
Copy link

ahermida69 commented Sep 18, 2024

I'm trying to find out if this is an issue or not:

`c:...\src\DailyStruggleButton.cpp: In member function 'bool DailyStruggleButton::debounce()':
c:...\src\DailyStruggleButton.cpp:104:33: warning: statement has no effect [-Wunused-value]

104 | if (flags.inverted == false){ !flags.currentRawState; }`

should it read:
if (flags.inverted == false){flags.currentRawState = !flags.currentRawState; }

Please advise,

Alf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant