From 932ef794ba6c1546a95cf7e72068d2f5578d4549 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 1 Dec 2024 17:26:11 +0800 Subject: wip --- rf_test/send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rf_test') diff --git a/rf_test/send.c b/rf_test/send.c index 8813f7e..0613f14 100644 --- a/rf_test/send.c +++ b/rf_test/send.c @@ -15,6 +15,7 @@ #define SPI_PORT PORTB #define STDBY 0x04 +#define LISTEN_ON 0x40 static inline uint8_t read_reg(uint8_t reg) { @@ -51,14 +52,13 @@ static inline void radio_init(void) int main(void) { - uint8_t val; + volatile uint8_t val; char buf[5]; serial_init(); radio_init(); for (;;) { - write_reg(0x01, 0x04); val = read_reg(0x01); serial_write_line(itoa(val, buf, 16)); _delay_ms(2000); -- cgit v1.2.3