summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 5115a99..53e8233 100644
--- a/main.c
+++ b/main.c
@@ -56,8 +56,9 @@ void radio_init(void)
_delay_ms(NRF_RST_DELAY_MS);
- // Change the default 1-byte CRC code to 2-byte CRC code
- write_reg(0x00, 0b00001100);
+ write_reg(0x00, 0b00001100); /* use 2-byte CRC code */
+ write_reg(0x03, 0b00000001); /* set address width to 3 bytes */
+ write_reg(0x04, 0b00000000); /* disable automatic retransmission */
}
int main(void)