summaryrefslogtreecommitdiff
path: root/digital/avr/modules/flash/test/test-flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'digital/avr/modules/flash/test/test-flash.c')
-rw-r--r--digital/avr/modules/flash/test/test-flash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/digital/avr/modules/flash/test/test-flash.c b/digital/avr/modules/flash/test/test-flash.c
index 99b12df2..92fb69f7 100644
--- a/digital/avr/modules/flash/test/test-flash.c
+++ b/digital/avr/modules/flash/test/test-flash.c
@@ -51,16 +51,12 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
case c ('e', 3):
/* Erase 4k:
* - 3b: address. */
- flash_erase (FLASH_ERASE_4K, addr);
+ flash_erase (FLASH_ERASE_PAGE, addr);
break;
case c ('s', 0):
/* print flash status */
proto_send1b ('s', flash_read_status());
break;
- case c ('w', 0):
- /* Send the write enable flash command. */
- flash_send_command (FLASH_WREN);
- break;
case c ('r', 3):
/* Read one byte:
* - 3b: address. */