X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fao_storage.c;h=6eddae7f84dcdd754b8c46d54972d352f19fc754;hb=bb9fdef607728cc326a82aa632e59724f272e53b;hp=b2dd435bba84a541e0fd3d895f110ba517c6bfb3;hpb=4de789331098abc24abcb9390a35aef889a41784;p=fw%2Faltos diff --git a/src/core/ao_storage.c b/src/core/ao_storage.c index b2dd435b..6eddae7f 100644 --- a/src/core/ao_storage.c +++ b/src/core/ao_storage.c @@ -16,6 +16,7 @@ */ #include +#include uint8_t ao_storage_read(ao_pos_t pos, __xdata void *buf, uint16_t len) __reentrant @@ -153,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); }