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=59cbf80e63b4c88de45e59c6e3d209f99910fcf3;hpb=2dc5d4eecc97b640a2e1f012b4411955682b61c8 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)