Skip to content

Compile Warning  #47

Open
Open
@physnoct

Description

@physnoct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions