projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Add 'O' command for TeleMega orient testing
[fw/altos]
/
src
/
core
/
ao_log.c
diff --git
a/src/core/ao_log.c
b/src/core/ao_log.c
index 1a1f5ff6c37a7c56bd4f6944b59616d599c6da5a..20febefe27f2df4693ad4cd02b6f31b96aaa20ea 100644
(file)
--- a/
src/core/ao_log.c
+++ b/
src/core/ao_log.c
@@
-49,7
+49,7
@@
static __xdata struct ao_log_erase erase;
static uint32_t
ao_log_erase_pos(uint8_t i)
{
static uint32_t
ao_log_erase_pos(uint8_t i)
{
- return i * sizeof (struct ao_log_erase);
+ return i * sizeof (struct ao_log_erase)
+ AO_CONFIG_MAX_SIZE
;
}
void
}
void
@@
-196,7
+196,9
@@
ao_log_full(void)
return ao_log_current_pos == ao_log_end_pos;
}
return ao_log_current_pos == ao_log_end_pos;
}
+#if HAS_ADC
static __xdata struct ao_task ao_log_task;
static __xdata struct ao_task ao_log_task;
+#endif
void
ao_log_list(void) __reentrant
void
ao_log_list(void) __reentrant