summaryrefslogtreecommitdiff
path: root/src/core/ao_log.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-12 16:22:49 +0900
committerKeith Packard <keithp@keithp.com>2013-11-12 16:27:31 +0900
commitbf893a4149b05b97f18f9f487af805adef859d74 (patch)
tree02fa8917e389d0d3444b93ec2e6d5ead406ba1a3 /src/core/ao_log.c
parent92eafd01f2809f39c5bc4058977c790d94a99df1 (diff)
altos: Make sure flight erase log comes after config blog
Oops. When converting from ao_storage to ao_config, I accidentally had the flight erase log overwriting the config block. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_log.c')
-rw-r--r--src/core/ao_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao_log.c b/src/core/ao_log.c
index 1a1f5ff6..701c81ab 100644
--- 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)
{
- return i * sizeof (struct ao_log_erase);
+ return i * sizeof (struct ao_log_erase) + AO_CONFIG_MAX_SIZE;
}
void