X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fstm32f4%2Fao_timer.c;fp=src%2Fstm32f4%2Fao_timer.c;h=83ffe4a76a247db1c1080b1c677183d153c94931;hp=999b587f3e7933862bbad0f72e783e15f3c11dee;hb=b140da92536d7c48ba37868f1c2afce7bb86dfdb;hpb=1d208c9509f03f7e2c913abe5c0dd78ef0083c0f diff --git a/src/stm32f4/ao_timer.c b/src/stm32f4/ao_timer.c index 999b587f..83ffe4a7 100644 --- a/src/stm32f4/ao_timer.c +++ b/src/stm32f4/ao_timer.c @@ -49,7 +49,7 @@ void stm_systick_isr(void) #endif 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_FAKE_FLIGHT if (ao_fake_flight_active)