altos: Allow use of internal EEPROM for config storage
[fw/altos] / src / core / ao_storage.c
index adf7e4d4949491f99a5609b2f22dc4fd650466b4..6eddae7f84dcdd754b8c46d54972d352f19fc754 100644 (file)
@@ -154,7 +154,7 @@ ao_storage_zapall(void) __reentrant
        ao_cmd_white();
        if (!ao_match_word("DoIt"))
                return;
        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);
 }
 
                ao_storage_erase(pos);
 }