summaryrefslogtreecommitdiffstats
path: root/commandline/examples
diff options
context:
space:
mode:
authorBluebie <a@creativepony.com>2012-10-03 10:18:29 +1000
committerBluebie <a@creativepony.com>2012-10-03 10:18:29 +1000
commitb18af8cf0766ea7280504e72cced96c9905b9995 (patch)
treeee07be7f113ea9bfa4d7d677673c2b4f16887b4f /commandline/examples
parentd3474f7a6bb921eb25c6fdd65f234d6c8825a4bb (diff)
downloadmicronucleus-b18af8cf0766ea7280504e72cced96c9905b9995.tar.gz
micronucleus-b18af8cf0766ea7280504e72cced96c9905b9995.tar.bz2
micronucleus-b18af8cf0766ea7280504e72cced96c9905b9995.zip
Adjusted timing in command line tool to run faster
Diffstat (limited to 'commandline/examples')
-rw-r--r--commandline/examples/micronucleus.c6
1 files 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) {