Browse Source

Fix PFW644 - MK25 reports stopped, arduino 1.8.5.

Robert Pelnar 5 years ago
parent
commit
1e05e1189d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/adc.c

+ 1 - 1
Firmware/adc.c

@@ -71,7 +71,7 @@ void adc_cycle(void)
 		uint8_t index = adc_state & 0x0f;
 		if ((adc_sim_mask & (1 << index)) == 0)
 			adc_values[index] += ADC;
-		if (index++ >= ADC_CHAN_CNT)
+		if (++index >= ADC_CHAN_CNT)
 		{
 			index = 0;
 			adc_count++;