From f993e65fca275fd91af8a894e3903bd27828d63d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 9 May 2017 19:08:16 +0800 Subject: [PATCH] fix elapsed counter --- firmware/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/src/main.rs b/firmware/src/main.rs index 9511f0e..4256532 100644 --- a/firmware/src/main.rs +++ b/firmware/src/main.rs @@ -106,6 +106,7 @@ extern fn adc0_ss0(ctxt: ADC0SS0) { loop_anode.adc_input(av_sample); loop_cathode.adc_input(fbi_sample, fd_sample, fv_sample, fbv_sample); + elapsed.set(elapsed.get() + 1); if elapsed.get() % 100 == 0 { board::set_led(1, true); board::set_led(2, false);