summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--r503.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/r503.c b/r503.c
index 25e7560..6f8a259 100644
--- a/r503.c
+++ b/r503.c
@@ -150,7 +150,7 @@ static inline uint8_t scan(void)
led_ctrl(0x01, PURPLE);
do {
- buf[0] = 0x01;
+ buf[0] = 0x28;
send(0x01, buf, 1);
recv(buf, &n);
if (buf[0] != OK) {
@@ -159,7 +159,7 @@ static inline uint8_t scan(void)
}
} while(buf[0] != OK && retries < 100);
- fpm_led_off();
+ led_ctrl(0x06, PURPLE);
return buf[0] == OK;
}
@@ -250,8 +250,9 @@ uint8_t fpm_enroll(void)
uint16_t n, retries;
uint8_t buf[MAXPDLEN], led;
- if (!scan())
- return 0;
+ if (scan()) {
+
+ }
- return 1;
+ return 0;
}