Quellcode durchsuchen

nrf24l01: changed src and dest address

Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>
Kiveisha Yevgeniy vor 10 Jahren
Ursprung
Commit
d0999cf778
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3
    3
      examples/nrf_transmitter.cxx

+ 3
- 3
examples/nrf_transmitter.cxx Datei anzeigen

@@ -31,8 +31,8 @@
31 31
 int running = 0;
32 32
 upm::NRF24L01 *comm = NULL;
33 33
 
34
-uint8_t destAddress[5]     = {0x01, 0x01, 0x01, 0x01, 0x02};
35
-uint8_t srcAddress[5]      = {0x01, 0x01, 0x01, 0x01, 0x01};
34
+uint8_t destAddress[5]     = {0x01, 0x01, 0x01, 0x01, 0x01};
35
+uint8_t srcAddress[5]      = {0x01, 0x01, 0x01, 0x01, 0x02};
36 36
 
37 37
 void
38 38
 sig_handler(int signo)
@@ -56,7 +56,7 @@ main(int argc, char **argv)
56 56
     comm->setSourceAddress ((uint8_t *) srcAddress);
57 57
     comm->setDestinationAddress ((uint8_t *) destAddress);
58 58
     comm->setPayload (MAX_BUFFER);
59
-    // comm->setChannel (99);
59
+    comm->setChannel (99);
60 60
     comm->configure ();
61 61
     comm->dataRecievedHandler = nrf_handler;
62 62