Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
dvj committed Jul 17, 2017
1 parent 3332f92 commit c7e3c3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dfu.c
Expand Up @@ -30,7 +30,7 @@
#include "dfu.h"
#include "quirks.h"

static int dfu_timeout = 5000; /* 5 seconds - default */
static int dfu_timeout = 10000; /* 5 seconds - default */

/*
* DFU_DETACH Request (DFU Spec 1.0, Section 5.1)
Expand Down
6 changes: 3 additions & 3 deletions src/dfuse.c
@@ -1,6 +1,6 @@
/*
* DfuSe specific functions
*
*
* This implements the ST Microsystems DFU extensions (DfuSe)
* as per the DfuSe 1.1a specification (ST documents AN3156, AN2606)
* The DfuSe file format is described in ST document UM0391.
Expand Down Expand Up @@ -34,7 +34,7 @@
#include "dfuse.h"
#include "dfuse_mem.h"

#define DFU_TIMEOUT 5000
#define DFU_TIMEOUT 10000

extern int verbose;
static unsigned int last_erased_page = 1; /* non-aligned value, won't match */
Expand Down Expand Up @@ -475,7 +475,7 @@ int dfuse_dnload_element(struct dfu_if *dif, unsigned int dwElementAddress,
} else {
dfu_progress_bar("Download", p, dwElementSize);
}

dfuse_special_command(dif, address, SET_ADDRESS);

/* transaction = 2 for no address offset */
Expand Down

0 comments on commit c7e3c3c

Please sign in to comment.