diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-08-10 21:37:37 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-08-10 21:37:37 +0200 |
commit | f4b0e9b6f3c9ac67c92f6144e671904986a9d873 (patch) | |
tree | 18fd553884efd9232527a6168e29267f63ab2e44 | |
parent | 6cf03a9e28b0dff123a9315c31a8fbb998502196 (diff) | |
download | 0xFFFF-f4b0e9b6f3c9ac67c92f6144e671904986a9d873.tar.bz2 |
Comment all old code
-rw-r--r-- | src/console.c | 14 | ||||
-rw-r--r-- | src/qmode.c | 18 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/console.c b/src/console.c index 75c1871..1b1d723 100644 --- a/src/console.c +++ b/src/console.c @@ -52,16 +52,16 @@ static void cmd_help(char *line) static void cmd_info(char *line) { char *p, str[128]; - get_sw_version(); - get_hw_revision(str, 128); // get hardware revision: +// get_sw_version(); +// get_hw_revision(str, 128); // get hardware revision: p = strstr(str, "hw_rev:"); if (p) // TODO: delimit string by comma printf("SubVersionString autodetected: '%s'\n", p+7); else printf("SubVersionString autodetected: (error)\n"); - get_root_device(); // only for flashing - get_usb_mode(); - get_rd_mode(); - get_rd_flags(); +// get_root_device(); // only for flashing +// get_usb_mode(); +// get_rd_mode(); +// get_rd_flags(); } static void cmd_nanddump(char *line) @@ -112,7 +112,7 @@ static void cmd_connect(char *line) static void cmd_reboot(char *line) { - reboot_board(); +// reboot_board(); } static void cmd_shell(char *line) diff --git a/src/qmode.c b/src/qmode.c index ce722d7..e83fe66 100644 --- a/src/qmode.c +++ b/src/qmode.c @@ -77,17 +77,17 @@ static void process_message(char *msg) } else flash_image(arg, type, NULL, NULL, NULL); } else*/ if (!strcmp(str, "reset")) { - if (reboot_board() == 0) { - squeue_push2(p,"info", "Device reboots", 1); - } else squeue_push2(p,"error", "Cannot reboot device", 1); +// if (reboot_board() == 0) { +// squeue_push2(p,"info", "Device reboots", 1); +// } else squeue_push2(p,"error", "Cannot reboot device", 1); } else if (!strcmp(str, "info")) { - get_rd_flags(); - squeue_push2(p, "info", strbuf, 1); - get_nolo_version(); - squeue_push2(p, "info", strbuf, 1); - get_usb_mode(); - squeue_push2(p, "info", strbuf, 1); +// get_rd_flags(); +// squeue_push2(p, "info", strbuf, 1); +// get_nolo_version(); +// squeue_push2(p, "info", strbuf, 1); +// get_usb_mode(); +// squeue_push2(p, "info", strbuf, 1); } else squeue_push2(p, "error", "invalid command", 0); } else { |