X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fao_storage.c;h=6ffca0e5f10313f70f687701652abc6f6c8f0b11;hp=c4beedd21c93f44b7b6272b32fe8677cb7584b28;hb=41c230cac359b4459ca93196d08704b7d35447c7;hpb=2722703bd848b07a02d3ce0c83a502eca52a9f1d diff --git a/src/ao_storage.c b/src/ao_storage.c index c4beedd2..6ffca0e5 100644 --- a/src/ao_storage.c +++ b/src/ao_storage.c @@ -92,7 +92,7 @@ ao_storage_dump(void) __reentrant storage_data, 8)) { ao_cmd_put16((uint16_t) i); - for (j = 0; j < 7; j++) { + for (j = 0; j < 8; j++) { putchar(' '); ao_cmd_put8(storage_data[j]); } @@ -166,14 +166,14 @@ ao_storage_info(void) __reentrant } __code struct ao_cmds ao_storage_cmds[] = { - { 'f', ao_storage_info, "f Show storage info" }, - { 'e', ao_storage_dump, "e Dump a block of flash data" }, -#if 0 - { 'w', ao_storage_store, "w ... Write data to flash" }, - #endif - { 'z', ao_storage_zap, "z Erase flash containing " }, - { 'Z', ao_storage_zapall,"Z Erase all logs. is doit with D&I" }, - { 0, ao_storage_zap, NULL }, + { ao_storage_info, "f\0Show storage" }, + { ao_storage_dump, "e \0Dump flash" }, +#ifdef HAS_STORAGE_DBG + { ao_storage_store, "w ...\0Write data to flash" }, +#endif + { ao_storage_zap, "z \0Erase " }, + { ao_storage_zapall,"Z \0Erase all. is doit with D&I" }, + { 0, NULL }, }; void