diff options
-rw-r--r-- | dfu.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; } |