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)
150150 // Enable the corresponding channel
151151 if (ulChannel != latestSelectedChannel ) {
152152 adc_enable_channel ( ADC , ulChannel );
153- if ( latestSelectedChannel != -1 )
153+ if ( latestSelectedChannel != ( uint32_t ) -1 )
154154 adc_disable_channel ( ADC , latestSelectedChannel );
155155 latestSelectedChannel = ulChannel ;
156156 }
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ void init( void )
380380 __libc_init_array ();
381381
382382 // Disable pull-up on every pin
383- for (int i = 0 ; i < PINS_COUNT; i++)
383+ for (unsigned i = 0 ; i < PINS_COUNT; i++)
384384 digitalWrite (i, LOW);
385385
386386 // Enable parallel access on PIO output data registers
You can’t perform that action at this time.
0 commit comments