X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fstm32l0%2Fao_timer.c;fp=src%2Fstm32l0%2Fao_timer.c;h=6d447fc96cc3324d0598ec71a21eb809153d3be9;hp=89193333f5c32a138d2bd593ced54c2c04a1db1f;hb=b140da92536d7c48ba37868f1c2afce7bb86dfdb;hpb=1d208c9509f03f7e2c913abe5c0dd78ef0083c0f 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