diff options
author | Keith Packard <keithp@keithp.com> | 2013-11-12 15:45:32 +0900 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-11-12 16:27:31 +0900 |
commit | 83437b2fe304599e22d0a98b5410808bcb67dc97 (patch) | |
tree | 6da7cc9eab667847e65f26b18e58f85df55e8a4f /src/core/ao_storage.c | |
parent | b57f1cabfe5052306cb4c28793bea477f4aeb2d2 (diff) |
altos: Allow use of internal EEPROM for config storage
This stops exposing eeprom as 'storage' and instead exposes it with a
separate eeprom API so that it can be used for config storage without
also using it for flight log storage.
The config code has been changed to allow it to either use storage for
configuration data or eeprom.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_storage.c')
-rw-r--r-- | src/core/ao_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao_storage.c b/src/core/ao_storage.c index adf7e4d4..6eddae7f 100644 --- a/src/core/ao_storage.c +++ b/src/core/ao_storage.c @@ -154,7 +154,7 @@ ao_storage_zapall(void) __reentrant ao_cmd_white(); if (!ao_match_word("DoIt")) return; - for (pos = 0; pos < ao_storage_config; pos += ao_storage_block) + for (pos = 0; pos < ao_storage_log_max; pos += ao_storage_block) ao_storage_erase(pos); } |