We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a13a0dd commit 644b1f4Copy full SHA for 644b1f4
cores/arduino/wiring_analog.c
@@ -150,7 +150,7 @@ uint32_t analogRead(uint32_t ulPin)
150
// Enable the corresponding channel
151
if (ulChannel != latestSelectedChannel) {
152
adc_enable_channel( ADC, ulChannel );
153
- if ( latestSelectedChannel != -1 )
+ if ( latestSelectedChannel != (uint32_t)-1 )
154
adc_disable_channel( ADC, latestSelectedChannel );
155
latestSelectedChannel = ulChannel;
156
}
variants/arduino_due_x/variant.cpp
@@ -380,7 +380,7 @@ void init( void )
380
__libc_init_array();
381
382
// Disable pull-up on every pin
383
- for (int i = 0; i < PINS_COUNT; i++)
+ for (unsigned i = 0; i < PINS_COUNT; i++)
384
digitalWrite(i, LOW);
385
386
// Enable parallel access on PIO output data registers
0 commit comments