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

Compile Warning #47

Open
physnoct opened this issue Mar 11, 2022 · 0 comments
Open

Compile Warning #47

physnoct opened this issue Mar 11, 2022 · 0 comments

Comments

@physnoct
Copy link

/home/user/.arduino15/packages/XMegaForArduino/hardware/avr/0.9.2/cores/xmega/wiring_analog.c: In function 'analogReadDeltaWithGain':
/home/user/.arduino15/packages/XMegaForArduino/hardware/avr/0.9.2/cores/xmega/wiring_analog.c:400:15: warning: comparison is always true due to limited range of data type [-Wtype-limits]
if(negpin >= 0 && negpin <= 3 && gain != ADC_CH_GAIN_1X_gc) // allow this IF gain is 1X
^~
/home/user/.arduino15/packages/XMegaForArduino/hardware/avr/0.9.2/cores/xmega/wiring_analog.c:404:20: warning: comparison is always true due to limited range of data type [-Wtype-limits]
else if(negpin >= 0 && negpin <= 3)

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