diff --git a/firmware/src/commands.c b/firmware/src/commands.c index 46c01e9..4a71afc 100644 --- a/firmware/src/commands.c +++ b/firmware/src/commands.c @@ -36,6 +36,10 @@ void executeCommand(CommandLine cmdLine) { // WRITE command: Takes a hex address as argument, reads data from UART and writes it to the EEPROM. commandRead(cmdLine.arg); } + else if (strcmp(cmdLine.command, "ERASE") == 0) { + // ERASE command: Takes a hex address range as argument and writes 0x00 bytes to the specified range. + commandRead(cmdLine.arg); + } else if (strcmp(cmdLine.command, "TESTREAD") == 0) { // TESTREAD command: for testing purposes, reads a few bytes and returns them in a human readable format. commandTestRead();