IoT - Kubus / Mbed 2 deprecated Kubus

Dependencies:   mbed nRF24L01P

Revision:
34:e67581c9b50d
Parent:
32:a6017128e999
Child:
37:1251e35fe43e
diff -r d3cc00e39e6a -r e67581c9b50d master.cpp
--- a/master.cpp	Tue Jan 17 11:39:59 2017 +0100
+++ b/master.cpp	Tue Jan 17 11:44:16 2017 +0100
@@ -8,7 +8,7 @@
     Serial pc(USBTX, USBRX); // tx, rx
     Serial wifi(PA_9, PA_10);
     nRF24L01P radio(PB_15, PB_14, PB_13, PB_12, PB_1, PB_2);    // mosi, miso, sck, csn, ce, irq
-    
+
     const unsigned long long RX_ADDRESS = MASTER_ADDRESS;
     const unsigned long long TX_ADDRESS = BOARD1_ADDRESS;
 
@@ -16,9 +16,9 @@
 
     pc.baud(115200);
     wifi.baud(115200);
-    
+
     radio_init(&radio, RX_ADDRESS, TX_ADDRESS);
-    
+
     // Display the (default) setup of the nRF24L01+ chip
     pc.printf( "nRF24L01+ Frequency    : %d MHz\r\n",  radio.getRfFrequency() );
     pc.printf( "nRF24L01+ Output power : %d dBm\r\n",  radio.getRfOutputPower() );
@@ -37,7 +37,7 @@
         if(radio.readable(NRF24L01P_PIPE_P1)){
             int rx_bytes = radio.read(NRF24L01P_PIPE_P1, rxData, sizeof(rxData));
             std::stringstream ss;
-            
+
             for (int i = 0; i < rx_bytes; ++i) {
                 ss << std::hex << rxData[i] / 16 << rxData[i] % 16; // ugly!
             }