fix elapsed counter

This commit is contained in:
Sebastien Bourdeauducq 2017-05-09 19:08:16 +08:00
parent caec6f1a3b
commit f993e65fca
1 changed files with 1 additions and 0 deletions

View File

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