diff options
Diffstat (limited to 'tools/irecovery.c')
| -rw-r--r-- | tools/irecovery.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c index a14e2b6..f3f7f39 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c | |||
| @@ -125,7 +125,7 @@ static void parse_command(irecv_client_t client, unsigned char* command, unsigne | |||
| 125 | shell_usage(); | 125 | shell_usage(); |
| 126 | } else if (!strcmp(cmd, "/upload")) { | 126 | } else if (!strcmp(cmd, "/upload")) { |
| 127 | char* filename = strtok(NULL, " "); | 127 | char* filename = strtok(NULL, " "); |
| 128 | debug("Uploading files %s\n", filename); | 128 | debug("Uploading file %s\n", filename); |
| 129 | if (filename != NULL) { | 129 | if (filename != NULL) { |
| 130 | irecv_send_file(client, filename, 0); | 130 | irecv_send_file(client, filename, 0); |
| 131 | } | 131 | } |
| @@ -174,6 +174,8 @@ static void parse_command(irecv_client_t client, unsigned char* command, unsigne | |||
| 174 | printf("Could not read file '%s'\n", filename); | 174 | printf("Could not read file '%s'\n", filename); |
| 175 | } | 175 | } |
| 176 | } | 176 | } |
| 177 | } else { | ||
| 178 | printf("Unsupported command %s. Use /help to get a list of available commands.\n", cmd); | ||
| 177 | } | 179 | } |
| 178 | 180 | ||
| 179 | free(action); | 181 | free(action); |
