X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fstmf0%2Fao_timer.c;fp=src%2Fstmf0%2Fao_timer.c;h=5b180074c07d8ddf7b850bf7e527a25a5e62ed31;hp=b0b6ec0a07e878d5f6c5dab4658468f7588c5f1f;hb=d225adc3af9e5726d436cbbdbf8dcc5837e50804;hpb=3759d6707d67e2584670ea89086576b695ea3509 diff --git a/src/stmf0/ao_timer.c b/src/stmf0/ao_timer.c index b0b6ec0a..5b180074 100644 --- a/src/stmf0/ao_timer.c +++ b/src/stmf0/ao_timer.c @@ -62,7 +62,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