Fix PFW644 - MK25 reports stopped, arduino 1.8.5.

This commit is contained in:
Robert Pelnar 2018-11-03 22:44:42 +01:00
parent ba8de39443
commit 1e05e1189d

View File

@ -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++;