aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@lamia.panaceas.james.local>2015-09-04 11:07:53 +0100
committerroot <root@lamia.panaceas.james.local>2015-09-04 11:07:53 +0100
commit96906163eed523958a7f6ff08281083fe0ae3f2d (patch)
tree9b39a5c3b082b687e6da3d3c85ea8afee22ee539
parentb0ad49a7b57b8e567d84e99e37033506af2678cb (diff)
downloadnrfdfu-96906163eed523958a7f6ff08281083fe0ae3f2d.tar.gz
nrfdfu-96906163eed523958a7f6ff08281083fe0ae3f2d.tar.bz2
nrfdfu-96906163eed523958a7f6ff08281083fe0ae3f2d.zip
fish
-rw-r--r--nrfdfu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nrfdfu.c b/nrfdfu.c
index c46a42d..cfa9400 100644
--- a/nrfdfu.c
+++ b/nrfdfu.c
@@ -34,8 +34,6 @@ main (int argc, char *argv[])
size_t dat_size;
- int tries = 3;
-
while ((opt = getopt (argc, argv, "b:p:")) != -1)
{
@@ -71,7 +69,7 @@ main (int argc, char *argv[])
(unsigned) bin_size);
- while (tries--)
+ while (1)
{
if (!dfu
(bdaddr, m->type, m->dfu_version, dat, dat_size, bin, bin_size))