projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Switch all tick variables to AO_TICK_TYPE/AO_TICK_SIGNED
[fw/altos]
/
src
/
kernel
/
ao_pyro.c
diff --git
a/src/kernel/ao_pyro.c
b/src/kernel/ao_pyro.c
index 6160410000d9d0af2a5733a811e67d38c1c73ab4..c9db061bfcf5f2bd74336b44f4afa16b821b2a71 100644
(file)
--- a/
src/kernel/ao_pyro.c
+++ b/
src/kernel/ao_pyro.c
@@
-161,14
+161,14
@@
ao_pyro_ready(struct ao_pyro *pyro)
#endif
case ao_pyro_time_less:
#endif
case ao_pyro_time_less:
- if ((
int32_t
) (ao_time() - ao_launch_tick) <= pyro->time_less)
+ if ((
AO_TICK_SIGNED
) (ao_time() - ao_launch_tick) <= pyro->time_less)
continue;
continue;
- DBG("time %d > %d\n", (
int32_t
)(ao_time() - ao_launch_tick), pyro->time_less);
+ DBG("time %d > %d\n", (
AO_TICK_SIGNED
)(ao_time() - ao_launch_tick), pyro->time_less);
break;
case ao_pyro_time_greater:
break;
case ao_pyro_time_greater:
- if ((
int32_t
) (ao_time() - ao_launch_tick) >= pyro->time_greater)
+ if ((
AO_TICK_SIGNED
) (ao_time() - ao_launch_tick) >= pyro->time_greater)
continue;
continue;
- DBG("time %d < %d\n", (
int32_t
)(ao_time() - ao_launch_tick), pyro->time_greater);
+ DBG("time %d < %d\n", (
AO_TICK_SIGNED
)(ao_time() - ao_launch_tick), pyro->time_greater);
break;
case ao_pyro_ascending:
break;
case ao_pyro_ascending:
@@
-316,7
+316,7
@@
ao_pyro_check(void)
continue;
}
continue;
}
- if ((
int32_t
) (ao_time() - pyro->delay_done) < 0)
+ if ((
AO_TICK_SIGNED
) (ao_time() - pyro->delay_done) < 0)
continue;
}
continue;
}