projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao_monitor: Clean up -Wconversion warnings
[fw/altos]
/
src
/
stm32f4
/
ao_timer.c
diff --git
a/src/stm32f4/ao_timer.c
b/src/stm32f4/ao_timer.c
index fb83db003aa46085f37a3b294e2da02402dc49b3..83ffe4a76a247db1c1080b1c677183d153c94931 100644
(file)
--- a/
src/stm32f4/ao_timer.c
+++ b/
src/stm32f4/ao_timer.c
@@
-47,12
+47,9
@@
void stm_systick_isr(void)
#if HAS_TICK
++ao_tick_count;
#endif
#if HAS_TICK
++ao_tick_count;
#endif
-#if HAS_TASK_QUEUE
- if (ao_task_alarm_tick && (int16_t) (ao_tick_count - ao_task_alarm_tick) >= 0)
- ao_task_check_alarm((uint16_t) ao_tick_count);
-#endif
+ ao_task_check_alarm();
#if AO_DATA_ALL
#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)
ao_data_count = 0;
#if HAS_FAKE_FLIGHT
if (ao_fake_flight_active)