X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32l0%2Fao_timer.c;h=6d447fc96cc3324d0598ec71a21eb809153d3be9;hb=e82cf4199761e900ef176a2a6ddd5d7cfc38bc07;hp=89193333f5c32a138d2bd593ced54c2c04a1db1f;hpb=7b1f4177d42e5e951a7db4289c847d355a785c2a;p=fw%2Faltos diff --git a/src/stm32l0/ao_timer.c b/src/stm32l0/ao_timer.c index 89193333..6d447fc9 100644 --- a/src/stm32l0/ao_timer.c +++ b/src/stm32l0/ao_timer.c @@ -64,7 +64,7 @@ void stm_systick_isr(void) ++ao_tick_count; ao_task_check_alarm(); #if AO_DATA_ALL - if (++ao_data_count == ao_data_interval) { + if (++ao_data_count == ao_data_interval && ao_data_interval) { ao_data_count = 0; #if HAS_ADC #if HAS_FAKE_FLIGHT