aboutsummaryrefslogtreecommitdiffstats
path: root/dfu.c
diff options
context:
space:
mode:
authorroot <root@no.no.james.local>2015-09-01 14:19:25 +0100
committerroot <root@no.no.james.local>2015-09-01 14:19:25 +0100
commit3bfb43d37968a143bfb65d52ab9fb7e7ee7d8ad0 (patch)
tree9c3569afa7bcc4359de68025e8365ffb6ec218ed /dfu.c
parentfa9856a79f67fe677340f5d21dd29da30647c1f5 (diff)
downloadnrfdfu-3bfb43d37968a143bfb65d52ab9fb7e7ee7d8ad0.tar.gz
nrfdfu-3bfb43d37968a143bfb65d52ab9fb7e7ee7d8ad0.tar.bz2
nrfdfu-3bfb43d37968a143bfb65d52ab9fb7e7ee7d8ad0.zip
works
Diffstat (limited to 'dfu.c')
-rw-r--r--dfu.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/dfu.c b/dfu.c
index 3d22133..ded587b 100644
--- a/dfu.c
+++ b/dfu.c
@@ -57,6 +57,7 @@ send_data_quickly (BLE * b, uint8_t * d, size_t sz, int pkts)
}
+#if 0
static int
send_data_slowly (BLE * b, uint8_t * d, size_t sz)
{
@@ -91,8 +92,9 @@ send_data_slowly (BLE * b, uint8_t * d, size_t sz)
return EXIT_SUCCESS;
}
+#endif
-void
+int
dfu (const char *bdaddr, const char *type, const char *version, uint8_t * dat,
size_t dat_sz, uint8_t * bin, size_t bin_sz)
{
@@ -213,7 +215,7 @@ dfu (const char *bdaddr, const char *type, const char *version, uint8_t * dat,
break;
ble_close (b);
- return;
+ return 0;
}
@@ -228,6 +230,6 @@ dfu (const char *bdaddr, const char *type, const char *version, uint8_t * dat,
ble_close (b);
- exit (EXIT_FAILURE);
+ return -1;
}