diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-07-16 14:52:32 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-07-16 14:52:32 +0200 |
commit | b47295e3b04413cc5d278df2ea8fe2c168beefd2 (patch) | |
tree | ebf340f74ad5fcbd1db4d0e3bee091356c9bc3de /src/app | |
parent | a426c8d552d4b477758f90d6bb08619fb1ff3edd (diff) |
more radio tests
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/nrf24l01test/main.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/app/nrf24l01test/main.cc b/src/app/nrf24l01test/main.cc index d0961d4..2ddcee3 100644 --- a/src/app/nrf24l01test/main.cc +++ b/src/app/nrf24l01test/main.cc @@ -33,6 +33,9 @@ void loop(void) if (status & 0x01) { kout << " TX_FULL"; } + if ((status & 0x0e) < 0x0d) { + kout << " @" << (status & 0x0e)/2; + } kout << endl; #ifdef MULTIPASS_ARCH_msp430fr5969lp @@ -65,11 +68,11 @@ int main(void) kout << "nrf24l01 configure ..."; unsigned char addr[5] = {0, 'D', 'E', 'R', 'F'}; - //nrf24l01.setAutoAck(1); + nrf24l01.setAutoAck(1); //nrf24l01.enableAckPayload(); - nrf24l01.setDynamicPayloads(true); + nrf24l01.setDynamicPayloads(false); nrf24l01.setPALevel(Nrf24l01::RF24_PA_MAX); - nrf24l01.setChannel(25); + nrf24l01.setChannel(110); nrf24l01.setDataRate(Nrf24l01::RF24_2MBPS); #ifdef MULTIPASS_ARCH_msp430fr5994lp nrf24l01.openReadingPipe(1, addr); |