diff options
Diffstat (limited to 'firmware/test/fat/main.c')
-rw-r--r-- | firmware/test/fat/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/test/fat/main.c b/firmware/test/fat/main.c index 68cef1f08c..58f83f45dc 100644 --- a/firmware/test/fat/main.c +++ b/firmware/test/fat/main.c | |||
@@ -267,6 +267,11 @@ void dbg_head(char* name) | |||
267 | close(fd); | 267 | close(fd); |
268 | } | 268 | } |
269 | 269 | ||
270 | int dbg_del(char* name) | ||
271 | { | ||
272 | return remove(name); | ||
273 | } | ||
274 | |||
270 | char current_directory[256] = "\\"; | 275 | char current_directory[256] = "\\"; |
271 | int last_secnum = 0; | 276 | int last_secnum = 0; |
272 | 277 | ||
@@ -300,6 +305,7 @@ int dbg_cmd(int argc, char *argv[]) | |||
300 | " tail <file>\n" | 305 | " tail <file>\n" |
301 | " mkfile <file> <size (KB)>\n" | 306 | " mkfile <file> <size (KB)>\n" |
302 | " chkfile <file>\n" | 307 | " chkfile <file>\n" |
308 | " del <file>\n" | ||
303 | ); | 309 | ); |
304 | return -1; | 310 | return -1; |
305 | } | 311 | } |
@@ -358,6 +364,12 @@ int dbg_cmd(int argc, char *argv[]) | |||
358 | } | 364 | } |
359 | } | 365 | } |
360 | 366 | ||
367 | if (!strcasecmp(cmd, "del")) | ||
368 | { | ||
369 | if (arg1) | ||
370 | return dbg_del(arg1); | ||
371 | } | ||
372 | |||
361 | return 0; | 373 | return 0; |
362 | } | 374 | } |
363 | 375 | ||