altos: oops -- 'e' command was only showing 7 of the 8 bytes per line
[fw/altos] / src / ao_storage.c
index c4beedd21c93f44b7b6272b32fe8677cb7584b28..709259ee977cee2305fcabc04c18efddc1c3a56d 100644 (file)
@@ -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]);
                        }
@@ -170,7 +170,7 @@ __code struct ao_cmds ao_storage_cmds[] = {
        { '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
+#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 },