summaryrefslogtreecommitdiffstats
path: root/fpm.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-05-04 12:35:46 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-05-04 12:35:46 +0800
commit56a6813170e570bc901ec1ceda0f9f563518334c (patch)
tree9a40f4bfed1c811f09611b8d2abcab3f39265201 /fpm.c
parent6dd8e70659b0b0b30d23385f9dcc3047bc1a898a (diff)
downloadavr-fpm-drivers-56a6813170e570bc901ec1ceda0f9f563518334c.tar.gz
Sleep mode with touch detection.
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;
}