summaryrefslogtreecommitdiffstats
path: root/fpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'fpm.c')
-rw-r--r--fpm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpm.c b/fpm.c
index 47fcd06..550a103 100644
--- a/fpm.c
+++ b/fpm.c
@@ -236,7 +236,8 @@ uint8_t fpm_match(void)
buf[0] = 0x11;
send(0x01, buf, 1);
recv(buf, &n);
- } while (buf[0] != OK && retries < 50);
+ retries++;
+ } while (buf[0] != OK && retries < 10);
return buf[0] == OK;
}