flash: Rewrite flash_image code to use struct * image
This commit is contained in:
1 parent
0d76941600
commit
29084d4acf
4 files changed
+29
-21
No files matched your search
+2
-2
@@ -52,12 +52,12 @@ void process_message(char *msg)
|
||||
if (c!=0) {
|
||||
arg[0]='\0';
|
||||
arg = arg +1;
|
||||
if (!strcmp(str, "flash")) {
|
||||
/* if (!strcmp(str, "flash")) {
|
||||
const char *type = fpid_file(arg);
|
||||
if (type == NULL) {
|
||||
squeue_push2(p, "error", "Unknown piece format", 1);
|
||||
} else flash_image(arg, type, NULL, NULL, NULL);
|
||||
} else
|
||||
} else*/
|
||||
if (!strcmp(str, "reset")) {
|
||||
if (reboot_board() == 0) {
|
||||
squeue_push2(p,"info", "Device reboots", 1);
|
||||
|
||||
Reference in new issue
Block a user