mdebug

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d48f1eba796b10b737a480ec1bde8ef04ec0f609
parent 926bf80f8c8e7da288281f0fdfefb1f8682bed93
Author: Brian Swetland <swetland@frotz.net>
Date:   Fri, 31 Jul 2015 10:13:09 -0700

lpcboot: add flash:boot command

Diffstat:
Mtools/lpcboot.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/lpcboot.c b/tools/lpcboot.c @@ -161,6 +161,9 @@ int main(int argc, char **argv) { if (!strcmp(argv[1],"flash")) { dl = 1; cmd[1] = 'W'; + } else if (!strcmp(argv[1],"flash:boot")) { + dl = 1; + cmd[1] = 'w'; } else if (!strcmp(argv[1],"boot")) { dl = 1; cmd[1] = 'X'; @@ -195,7 +198,7 @@ int main(int argc, char **argv) { if (dfu) { return dfu_download(buf + 256, sz); } - for (;;) { + for (;;) { usb = usb_open(0x18d1, 0xdb00, 0); if (usb == 0) { if (once) {