diff options
author | root <root@no.no.james.local> | 2015-09-01 14:19:25 +0100 |
---|---|---|
committer | root <root@no.no.james.local> | 2015-09-01 14:19:25 +0100 |
commit | 3bfb43d37968a143bfb65d52ab9fb7e7ee7d8ad0 (patch) | |
tree | 9c3569afa7bcc4359de68025e8365ffb6ec218ed /dfu.c | |
parent | fa9856a79f67fe677340f5d21dd29da30647c1f5 (diff) | |
download | nrfdfu-3bfb43d37968a143bfb65d52ab9fb7e7ee7d8ad0.tar.gz nrfdfu-3bfb43d37968a143bfb65d52ab9fb7e7ee7d8ad0.tar.bz2 nrfdfu-3bfb43d37968a143bfb65d52ab9fb7e7ee7d8ad0.zip |
works
Diffstat (limited to 'dfu.c')
-rw-r--r-- | dfu.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; } |