summaryrefslogtreecommitdiffstats
path: root/r503.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-05-08 07:23:53 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-05-08 07:26:46 +0800
commit91352c31240b6a38afb8f70b87413e1f27d1cdfd (patch)
tree73394aba4416a733dc4953c080b0fd8517784a09 /r503.c
parent15a14229a2cd9d1db5165e88fe07adcb7ca45b31 (diff)
downloadavr-fpm-drivers-91352c31240b6a38afb8f70b87413e1f27d1cdfd.tar.gz
Check cap and set id to count + 1.
Diffstat (limited to 'r503.c')
-rw-r--r--r503.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/r503.c b/r503.c
index 136b31c..d1483a0 100644
--- a/r503.c
+++ b/r503.c
@@ -259,7 +259,7 @@ uint8_t fpm_enroll(void)
uint8_t buf[MAXPDLEN];
fpm_get_cfg(&cfg);
- n = fpm_get_count();
+ n = fpm_get_count() + 1;
if (n >= cfg.cap)
return 0;