aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dfu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dfu.c b/dfu.c
index a2b252c..9dd83ed 100644
--- a/dfu.c
+++ b/dfu.c
@@ -245,11 +245,9 @@ dfu (const char *bdaddr, const char *type, const char *version, uint8_t * dat,
buf[0] = OP_CODE_SYS_RESET;
ble_send_cp_noresp (b, buf, 1);
sleep (1);
+ ble_close (b);
}
-
-
- ble_close (b);
return -1;
}