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: operation on 'battery' may be undefined] while compiling papracode-PCBV6.ino #5

Open
capsulecorplab opened this issue Jun 11, 2022 · 0 comments · May be fixed by #6
Open

Comments

@capsulecorplab
Copy link
Member

capsulecorplab commented Jun 11, 2022

/home/kasm-user/papra-pcb-firmware/papracode-PCBV6/papracode-PCBV6.ino: In function 'void loop()':
/home/kasm-user/papra-pcb-firmware/papracode-PCBV6/papracode-PCBV6.ino:183:11: warning: operation on 'battery' may be undefined [-Wsequence-point]
   battery = battery = ( ( battery * ( numBatterySamples - 1 ) ) + analogRead(analogBatt) ) / numBatterySamples;
   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@mechatroniks-git mechatroniks-git linked a pull request Jun 12, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant