summaryrefslogtreecommitdiff
path: root/src/core/ao_log.c
diff options
context:
space:
mode:
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