summaryrefslogtreecommitdiffstats
path: root/dong.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-04-24 10:10:10 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-04-24 10:10:10 +0800
commit5dc7c2d195f7c59a7f25464506a7fd9d01190cc1 (patch)
tree6e83a0eeb131a03cb7bec0284030d7a212e925b3 /dong.c
parent9bce9c092a47a3a3a9028be858053f17146dad20 (diff)
downloadavr-nrf24l01-driver-5dc7c2d195f7c59a7f25464506a7fd9d01190cc1.tar.gz
wip: tx-rx not working.
Diffstat (limited to 'dong.c')
-rw-r--r--dong.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dong.c b/dong.c
index cdf1f08..308d3ab 100644
--- a/dong.c
+++ b/dong.c
@@ -48,6 +48,9 @@ int main(void)
uart_write("INFO: ");
uart_write_line(buf);
}
+ if (strncmp(buf, "SYN", 3) == 0) {
+ radio_sendto(txaddr, "ACK", 3);
+ }
}
//_delay_ms(1000);