From 56a6813170e570bc901ec1ceda0f9f563518334c Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 4 May 2025 12:35:46 +0800 Subject: Sleep mode with touch detection. --- fpm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fpm.c') 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; } -- cgit v1.2.3