summaryrefslogtreecommitdiffstats
path: root/lock/client.c
diff options
context:
space:
mode:
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;