Maniacbug's RF24 arduino library ported to mbed. Tested, it works for Nucleo F411

Dependents:   RF24Network_Send RF24Network_Receive WeatherStation maple_chotobot_rf_motores ... more

Revision:
5:ee34c2837c4c
Parent:
3:e94be00fd19e
Child:
6:5cc7136648d1
diff -r a35313611c1c -r ee34c2837c4c RF24.cpp
--- a/RF24.cpp	Wed Dec 30 01:47:37 2015 +0000
+++ b/RF24.cpp	Tue Feb 23 00:40:33 2016 +0000
@@ -113,7 +113,7 @@
     uint8_t status;
     const uint8_t* current = reinterpret_cast<const uint8_t*>(buf);
 
-    uint8_t data_len = rf24_min(data_len, payload_size);
+    uint8_t data_len = rf24_min(len, payload_size);
     uint8_t blank_len = dynamic_payloads_enabled ? 0 : payload_size - data_len;
 
     IF_SERIAL_DEBUG( printf("[Writing %u bytes %u blanks]\n",data_len,blank_len); );