From 0cd2520c972d1f9f7f5bcfdd011e20ef2b830d46 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 1 Jun 2025 18:48:24 +0800 Subject: Remove manual retries from the client. --- lock/client.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lock/client.c') diff --git a/lock/client.c b/lock/client.c index 393d260..e983225 100644 --- a/lock/client.c +++ b/lock/client.c @@ -76,7 +76,7 @@ static inline void fpm_nok(void) int main(void) { - int i, retries; + int i; uint8_t rxaddr[ADDRLEN] = { 194, 178, 82 }; uint8_t txaddr[ADDRLEN] = { 194, 178, 83 }; @@ -110,12 +110,7 @@ int main(void) } xor(KEY, SYN, buf, WDLEN); - retries = 0; - do { - sync = radio_sendto(txaddr, buf, WDLEN); - retries++; - _delay_ms(50); - } while (!sync && retries < 40); + sync = radio_sendto(txaddr, buf, WDLEN); if (!sync) { islock = 0; -- cgit v1.2.3