diff --git a/avr/usbload/shell.c b/avr/usbload/shell.c index 8771d88..2e9d7b8 100644 --- a/avr/usbload/shell.c +++ b/avr/usbload/shell.c @@ -193,10 +193,11 @@ enum cmds { CMD_DUMP, CMD_SHMSAVE, CMD_SHMRESTORE, CMD_LOADER, - CMD_RECONNECT + CMD_RECONNECT, + CMD_HELP }; -uint8_t cmdlist[][CMD_RECONNECT] PROGMEM = { +uint8_t cmdlist[][CMD_HELP] PROGMEM = { {"DUMP"}, {"CRC"}, {"EXIT"}, @@ -212,9 +213,20 @@ uint8_t cmdlist[][CMD_RECONNECT] PROGMEM = { {"SHMRESTORE"}, {"LOADER"}, {"RECONNECT"}, + {"HELP"}, }; +void shell_help(void){ + uint8_t i; + info_P(PSTR("\n")); + for (i=CMD_DUMP; i