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]);
}
}
__code struct ao_cmds ao_storage_cmds[] = {
- { 'f', ao_storage_info, "f Show storage info" },
- { 'e', ao_storage_dump, "e <block> Dump a block of flash data" },
-#if 0
- { 'w', ao_storage_store, "w <block> <start> <len> <data> ... Write data to flash" },
- #endif
- { 'z', ao_storage_zap, "z <block> Erase flash containing <block>" },
- { 'Z', ao_storage_zapall,"Z <key> Erase all logs. <key> is doit with D&I" },
- { 0, ao_storage_zap, NULL },
+ { ao_storage_info, "f\0Show storage info" },
+ { ao_storage_dump, "e <block>\0Dump a block of flash data" },
+#ifdef HAS_STORAGE_DBG
+ { ao_storage_store, "w <block> <start> <len> <data> ...\0Write data to flash" },
+#endif
+ { ao_storage_zap, "z <block>\0Erase flash containing <block>" },
+ { ao_storage_zapall,"Z <key>\0Erase all logs. <key> is doit with D&I" },
+ { 0, NULL },
};
void