File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ uint32_t analogRead(uint32_t ulPin)
150
150
// Enable the corresponding channel
151
151
if (ulChannel != latestSelectedChannel ) {
152
152
adc_enable_channel ( ADC , ulChannel );
153
- if ( latestSelectedChannel != -1 )
153
+ if ( latestSelectedChannel != ( uint32_t ) -1 )
154
154
adc_disable_channel ( ADC , latestSelectedChannel );
155
155
latestSelectedChannel = ulChannel ;
156
156
}
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ void init( void )
380
380
__libc_init_array ();
381
381
382
382
// Disable pull-up on every pin
383
- for (int i = 0 ; i < PINS_COUNT; i++)
383
+ for (unsigned i = 0 ; i < PINS_COUNT; i++)
384
384
digitalWrite (i, LOW);
385
385
386
386
// Enable parallel access on PIO output data registers
You can’t perform that action at this time.
0 commit comments