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, committed 2016-02-23
- Comitter:
- akashvibhute
- Date:
- Tue Feb 23 00:40:33 2016 +0000
- Parent:
- 4:a35313611c1c
- Child:
- 6:5cc7136648d1
- Commit message:
- updated typo on line 116, which determined minimum data length...
Changed in this revision
RF24.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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); );