diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2024-12-01 17:26:11 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2024-12-01 17:26:11 +0800 |
| commit | 932ef794ba6c1546a95cf7e72068d2f5578d4549 (patch) | |
| tree | 815045e7845d2291149338c950fd6de0e6b5d87c /rf_test | |
| parent | 44916838be20deeaefc41aad737afa1cd72d6d3c (diff) | |
| download | smart-home-932ef794ba6c1546a95cf7e72068d2f5578d4549.tar.gz | |
wip
Diffstat (limited to 'rf_test')
| -rw-r--r-- | rf_test/send.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
