aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@no.no.james.local>2015-09-01 16:50:05 +0100
committerroot <root@no.no.james.local>2015-09-01 16:50:05 +0100
commit90d941583bdce0670dcb4a7e8e90a98cffd3308a (patch)
tree58c3e37f94de5cf723188bc5953a4146cfdc7041
parentb92a20c60e5a4409179efc5b659411d3c0c7b6f6 (diff)
downloadnrfdfu-90d941583bdce0670dcb4a7e8e90a98cffd3308a.tar.gz
nrfdfu-90d941583bdce0670dcb4a7e8e90a98cffd3308a.tar.bz2
nrfdfu-90d941583bdce0670dcb4a7e8e90a98cffd3308a.zip
fix bugs, and better end handling
-rw-r--r--dfu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dfu.c b/dfu.c
index 29dc4cd..e4a5ecb 100644
--- a/dfu.c
+++ b/dfu.c
@@ -238,7 +238,8 @@ dfu (const char *bdaddr, const char *type, const char *version, uint8_t * dat,
if (b)
{
buf[0] = OP_CODE_SYS_RESET;
- ble_send_cp (b, buf, 1);
+ ble_send_cp_noresp (b, buf, 1);
+ sleep(1);
}