Compare commits

..

1 Commits

Author SHA1 Message Date
Lexi / Zoe 67beda0dbd
Implement HELP command 2021-04-16 21:48:27 +02:00
1 changed files with 4 additions and 0 deletions

View File

@ -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. // WRITE command: Takes a hex address as argument, reads data from UART and writes it to the EEPROM.
commandRead(cmdLine.arg); 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) { else if (strcmp(cmdLine.command, "TESTREAD") == 0) {
// TESTREAD command: for testing purposes, reads a few bytes and returns them in a human readable format. // TESTREAD command: for testing purposes, reads a few bytes and returns them in a human readable format.
commandTestRead(); commandTestRead();