diff options
author | Keith Packard <keithp@keithp.com> | 2011-10-11 18:11:56 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-10-11 18:57:32 -0600 |
commit | ac0bebc44bc657b303db4c41fa0c9624f3df9f4f (patch) | |
tree | 55a9e19c1c7af0f5782514c24e7ee56c2118544e | |
parent | 3a28846d3ff8f82b0e97c211b9debf6d67ee5af5 (diff) |
altos: Make HAS_STORAGE_DEBUG define consistent
This allows products to include the 'w' command for testing flash
writing as needed.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/core/ao_storage.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/ao_storage.c b/src/core/ao_storage.c index 6ffca0e5..ff4747d0 100644 --- a/src/core/ao_storage.c +++ b/src/core/ao_storage.c @@ -103,7 +103,7 @@ ao_storage_dump(void) __reentrant } } -#if 0 +#if HAS_STORAGE_DEBUG /* not enough space for this today */ @@ -160,6 +160,7 @@ ao_storage_zapall(void) __reentrant void ao_storage_info(void) __reentrant { + ao_storage_setup(); printf("Storage size: %ld\n", ao_storage_total); printf("Storage erase unit: %ld\n", ao_storage_block); ao_storage_device_info(); @@ -168,7 +169,7 @@ ao_storage_info(void) __reentrant __code struct ao_cmds ao_storage_cmds[] = { { ao_storage_info, "f\0Show storage" }, { ao_storage_dump, "e <block>\0Dump flash" }, -#ifdef HAS_STORAGE_DBG +#if HAS_STORAGE_DEBUG { ao_storage_store, "w <block> <start> <len> <data> ...\0Write data to flash" }, #endif { ao_storage_zap, "z <block>\0Erase <block>" }, |