From 50453a8581d8efea7a2aa0fcbb4c3e5ba31e5edf Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 8 Dec 2024 19:57:22 +0800 Subject: wip. --- rf_test/radio.c | 2 ++ rf_test/send.c | 1 + 2 files changed, 3 insertions(+) diff --git a/rf_test/radio.c b/rf_test/radio.c index 3e2b9ba..af028f0 100644 --- a/rf_test/radio.c +++ b/rf_test/radio.c @@ -58,6 +58,8 @@ void radio_send(const char *data, uint8_t n) } SPI_PORT |= (1 << SPI_SS); + // todo: high power settings? + write_reg(0x01, 0x0C); while (!(read_reg(0x28) & 0x08)) ; diff --git a/rf_test/send.c b/rf_test/send.c index 325ac3f..9d1ff2a 100644 --- a/rf_test/send.c +++ b/rf_test/send.c @@ -19,6 +19,7 @@ int main(void) const char *s = "hello, world!"; n = strlen(s); + cfg.netid = 0x01; cfg.nodeid = 0x02; cfg.payload_len = n; -- cgit v1.2.3