summaryrefslogtreecommitdiffstats
path: root/rf_test/recv.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-12-07 08:26:22 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-12-07 08:26:22 +0800
commit4e653d31c16109b41e892d4414972f433abb2678 (patch)
tree8fc6646927a87de10e77f2c7e6346c5ba67fa054 /rf_test/recv.c
parentf4c40d10ca4df9bd5abbba628abc26933ff41e59 (diff)
downloadsmart-home-4e653d31c16109b41e892d4414972f433abb2678.tar.gz
wip: variable length data and listen on in init.
Diffstat (limited to 'rf_test/recv.c')
-rw-r--r--rf_test/recv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rf_test/recv.c b/rf_test/recv.c
index 64451a0..74d1672 100644
--- a/rf_test/recv.c
+++ b/rf_test/recv.c
@@ -4,7 +4,7 @@
#include "radio.h"
#include "serial.h"
-#define PAYLOAD_LEN 13
+#define BUFLEN 61
#define RX_PIN PB0
#define RX_DDR DDRB
@@ -38,13 +38,13 @@ int main(void)
ISR(RX_PCINTVEC)
{
uint8_t i, n;
- char buf[PAYLOAD_LEN + 1];
+ char buf[BUFLEN + 1];
cli();
serial_write_line("Handling pin change IRQ");
- n = radio_recv(buf, PAYLOAD_LEN);
+ n = radio_recv(buf, BUFLEN);
buf[n] = '\0';
for (i = 0; i < n; i++)