projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add gps, debug dongle support and pressure alt tables
[fw/altos]
/
ao_timer.c
diff --git
a/ao_timer.c
b/ao_timer.c
index 702159b73f64f0bb918a6e3417c3b971ff5c13a4..2bd47af1417dd9de3d4090bbc9200e4475110407 100644
(file)
--- a/
ao_timer.c
+++ b/
ao_timer.c
@@
-21,12
+21,10
@@
static volatile __data uint16_t ao_tick_count;
uint16_t ao_time(void)
{
uint16_t ao_time(void)
{
- volatile bit ea_save;
__data uint16_t ret;
__data uint16_t ret;
-
- ea_save = EA;
- ret = ao_tick_count;
- EA = ea_save;
+ __critical {
+ ret = ao_tick_count;
+ }
return ret;
}
return ret;
}