From 1e05e1189d969ce08152b4f72c5beed508f91101 Mon Sep 17 00:00:00 2001 From: Robert Pelnar Date: Sat, 3 Nov 2018 22:44:42 +0100 Subject: [PATCH] Fix PFW644 - MK25 reports stopped, arduino 1.8.5. --- Firmware/adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/adc.c b/Firmware/adc.c index 1798b083..26728cef 100644 --- a/Firmware/adc.c +++ b/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++;