From b18af8cf0766ea7280504e72cced96c9905b9995 Mon Sep 17 00:00:00 2001 From: Bluebie Date: Wed, 3 Oct 2012 10:18:29 +1000 Subject: Adjusted timing in command line tool to run faster --- commandline/examples/micronucleus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commandline/examples/micronucleus.c b/commandline/examples/micronucleus.c index 7d85fae..af62494 100644 --- a/commandline/examples/micronucleus.c +++ b/commandline/examples/micronucleus.c @@ -30,7 +30,7 @@ #define FILE_TYPE_INTEL_HEX 1 #define FILE_TYPE_RAW 2 -#define CONNECT_WAIT 750 /* milliseconds to wait after detecting device on usb bus - probably excessive */ +#define CONNECT_WAIT 250 /* milliseconds to wait after detecting device on usb bus - probably excessive */ /****************************************************************************** * Global definitions @@ -114,8 +114,8 @@ int main(int argc, char **argv) { printf("> Press CTRL+C to terminate the program.\n"); while (my_device == NULL) { + delay(100); my_device = micronucleus_connect(); - delay(250); } printf("> Device is found!\n"); @@ -129,7 +129,7 @@ int main(int argc, char **argv) { delay(50); } - my_device = micronucleus_connect(); + //my_device = micronucleus_connect(); printProgress(1.0); if (my_device->page_size == 64) { -- cgit v1.2.3