File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
hardware/arduino/sam/cores/arduino Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ ARDUINO 1.5.6 BETA
1010
1111[core]
1212* sam: Fixed wrap-around bug in delay() (Mark Tillotson)
13- * sam: Fixed regression in analogRead() (fails to read multiple channels)
13+ * sam: Fixed regression in analogRead() (fails to read multiple channels) (Mark Tillotson)
1414
1515ARDUINO 1.5.5 BETA 2013.11.28
1616
Original file line number Diff line number Diff line change @@ -149,9 +149,9 @@ uint32_t analogRead(uint32_t ulPin)
149149
150150 // Enable the corresponding channel
151151 if (ulChannel != latestSelectedChannel ) {
152+ adc_enable_channel ( ADC , ulChannel );
152153 if ( latestSelectedChannel != -1 )
153154 adc_disable_channel ( ADC , latestSelectedChannel );
154- adc_enable_channel ( ADC , ulChannel );
155155 latestSelectedChannel = ulChannel ;
156156 }
157157
You can’t perform that action at this time.
0 commit comments