Skip to content

Commit 0281ea2

Browse files
authored
clamp setRetries() args & doc main page fixes (#709)
* clamp setRetries() args * remove broken link to LttleWire on main pg * update link to littlewire homepage * renamed datasheets * replace list of changes with a link to releases
1 parent 38b1205 commit 0281ea2

File tree

4 files changed

+6
-30
lines changed

4 files changed

+6
-30
lines changed

RF24.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ void RF24::disableCRC(void)
16091609
/****************************************************************************/
16101610
void RF24::setRetries(uint8_t delay, uint8_t count)
16111611
{
1612-
write_register(SETUP_RETR, (delay & 0xf) << ARD | (count & 0xf) << ARC);
1612+
write_register(SETUP_RETR, rf24_min(15, delay) << ARD | rf24_min(15, count));
16131613
}
16141614

16151615
/****************************************************************************/

RF24.h

+5-29
Original file line numberDiff line numberDiff line change
@@ -2116,36 +2116,12 @@ class RF24 {
21162116
*
21172117
* @section News News
21182118
*
2119-
* **Aug 2020** <br>
2120-
* v1.3.9
2121-
* - Fix broken compilation for some devices due to recent changes
2122-
* v1.3.8
2123-
* - Introduces change that mainly reduces the time required to call RF24::startListening(), RF24::powerUp(), and RF24::powerDown()
2124-
* - Affects speed of switching from TX->RX. Users might consider starting updates of slower devices with this<br>
2125-
* release to prevent missed packets when similar changes are introduced, affecting switching from RX->TX
2126-
* - Clean up RF24::begin() function (reduce program size)
2127-
*
2128-
* v1.3.7
2129-
* - Bug fix for RF24::writeFast() function affecting RF24 stack (all RF24 libraries)
2130-
* - Unify Arduino & Linux constructor. Accept SPI speed in Hz as optional parameter
2131-
* - Removal of BCM2835 SPI speed constants due to removal from BCM library
2132-
* - Update to latest BCM2835 driver
2133-
* - Bug fix for RPi millis() code
2134-
* - Added Constant Carrier Wave functionality & added to scanner example
2135-
* - Modify RF24::setPALevel() to allow setting LNA gain via optional parameter
2136-
* - Cleanup of warnings, errors and old files
2137-
*
2138-
* **March-July 2020**
2139-
* - Fixes for SPI_HAS_TRANSACTION detection (Affecting many devices)
2140-
* - Add ability to configure SPI speed properly in Linux constructor
2141-
* - Support multiple instances of SPIDEV on Linux
2142-
* - Minor fixes & changes
2143-
*
2144-
*
2119+
* @li See the releases' descriptions on
2120+
* [the library's release page](http://github.com/nRF24/RF24/releases) for a list of
2121+
* changes.
21452122
*
21462123
* @section Useful Useful References
21472124
*
2148-
*
21492125
* @li <a href="classRF24.html"><b>RF24 Class Documentation</b></a>
21502126
* @li <a href="pages.html"><b>Support & Configuration</b></a>
21512127
* @li <a href="https://github.com/nRF24/RF24/"><b>Source Code</b></a>
@@ -2176,7 +2152,7 @@ class RF24 {
21762152
*
21772153
* @li <a href="Arduino.html"><b>Arduino</b></a> (Uno, Nano, Mega, Due, Galileo, etc)
21782154
* @li <a href="ATTiny.html"><b>ATTiny</b></a>
2179-
* @li <a href="Linux.html"><b>Linux Installation</b></a>( <a href="RPi.html"><b>Linux/RPi General</b></a> , <a href="MRAA.html"><b>MRAA</b></a> supported boards ( Galileo, Edison, etc), <a href="LittleWire.html"><b>LittleWire</b></a>)
2155+
* @li <a href="Linux.html"><b>Linux Installation</b></a>( <a href="RPi.html"><b>Linux/RPi General</b></a> , <a href="MRAA.html"><b>MRAA</b></a> supported boards (Galileo, Edison, etc), LittleWire)
21802156
* @li <a href="CrossCompile.html"><b>Cross-compilation</b></a> for linux devices
21812157
* @li <a href="Python.html"><b>Python</b></a> wrapper available for Linux devices
21822158
*
@@ -2199,7 +2175,7 @@ class RF24 {
21992175
*
22002176
* @li [0] https://learn.sparkfun.com/tutorials/tiny-avr-programmer-hookup-guide/attiny85-use-hints
22012177
* @li [1] http://highlowtech.org/?p=1695
2202-
* @li [2] http://littlewire.cc/
2178+
* @li [2] http://littlewire.github.io/
22032179
* <br><br><br>
22042180
*
22052181
*

datasheets/nRF24L01P_datasheet_v1.pdf

-50.7 KB
Binary file not shown.

datasheets/nRF24L01_datasheet_v2.pdf

50.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)