diff options
author | Tim <cpldcpu@gmail.com> | 2016-07-31 22:34:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-31 22:34:32 +0200 |
commit | 7a53ce9e539a18fb46f7dc8e759f14833b10cc0c (patch) | |
tree | a6cdc7a5c889409cb6d32932e36e1c660a526880 /commandline/micronucleus.c | |
parent | d94a1bdd26a5ed0ebec3532715d406153f7b5811 (diff) | |
parent | 96f59349f7136121e1ea52799ef1377d86b0dc2f (diff) | |
download | micronucleus-7a53ce9e539a18fb46f7dc8e759f14833b10cc0c.tar.gz micronucleus-7a53ce9e539a18fb46f7dc8e759f14833b10cc0c.tar.bz2 micronucleus-7a53ce9e539a18fb46f7dc8e759f14833b10cc0c.zip |
Merge pull request #82 from micronucleus/revert-79-libusb-1.0.20
Revert "Update to libusb 1.0.20"
Diffstat (limited to 'commandline/micronucleus.c')
-rw-r--r-- | commandline/micronucleus.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/commandline/micronucleus.c b/commandline/micronucleus.c index 91dbac4..14c1761 100644 --- a/commandline/micronucleus.c +++ b/commandline/micronucleus.c @@ -3,7 +3,7 @@ Created: September 2012 (c) 2012 by ihsan Kehribar <ihsan@kehribar.me> Changes for Micronucleus protocol version V2.x (c) 2014 T. Bo"scke - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to @@ -76,7 +76,7 @@ int main(int argc, char **argv) { char* usage = "usage: micronucleus [--help] [--run] [--dump-progress] [--fast-mode] [--type intel-hex|raw] [--timeout integer] [--erase-only] filename"; #else char* usage = "usage: micronucleus [--help] [--run] [--dump-progress] [--fast-mode] [--type intel-hex|raw] [--timeout integer] [--erase-only] filename [--no-ansi]"; - #endif + #endif progress_step = 0; progress_total_steps = 5; // steps: waiting, connecting, parsing, erasing, writing, (running)? dump_progress = 0; @@ -238,8 +238,6 @@ int main(int argc, char **argv) { if (res == 1) { // erase disconnection bug workaround printf(">> Eep! Connection to device lost during erase! Not to worry\n"); printf(">> This happens on some computers - reconnecting...\n"); - - micronucleus_disconnect(my_device); my_device = NULL; delay(CONNECT_WAIT); @@ -292,8 +290,6 @@ int main(int argc, char **argv) { printProgress(1.0); } - micronucleus_disconnect(my_device); - printf(">> Micronucleus done. Thank you!\n"); return EXIT_SUCCESS; |