summaryrefslogtreecommitdiffstats
path: root/lock/client.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-06-01 18:48:24 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-06-01 18:48:24 +0800
commit0cd2520c972d1f9f7f5bcfdd011e20ef2b830d46 (patch)
tree440219693e8b8f24b4228751e89962de05bc64dd /lock/client.c
parent3f2fc315d1b3e79e86c0b78ab3ce5d4abc9266a6 (diff)
downloadsmart-home-0cd2520c972d1f9f7f5bcfdd011e20ef2b830d46.tar.gz
Remove manual retries from the client.
Diffstat (limited to 'lock/client.c')
-rw-r--r--lock/client.c9
1 files changed, 2 insertions, 7 deletions
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;