arduino icon indicating copy to clipboard operation
arduino copied to clipboard

Compile Warning

Open physnoct opened this issue 2 years ago • 0 comments

/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)

physnoct avatar Mar 11 '22 21:03 physnoct