Skip to content

Commit c0440e0

Browse files
committed
Fix compilation errors
- Recent changes broke compilation for some devices - Update for release
1 parent bb71b13 commit c0440e0

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

RF24.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ class RF24 {
14211421
* - Clean up begin() function (reduce program size)
14221422
*
14231423
* v1.3.7
1424-
* - Bug fix for startWrite() function affecting RF24 stack (all RF24 libraries)
1424+
* - Bug fix for writeFast() function affecting RF24 stack (all RF24 libraries)
14251425
* - Unify Arduino & Linux constructor. Accept SPI speed in Hz as optional parameter
14261426
* - Removal of BCM2835 SPI speed constants due to removal from BCM library
14271427
* - Update to latest BCM2835 driver

RF24_config.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@
144144
typedef char const char;
145145

146146
#else // Fill in pgm_read_byte that is used, but missing from DUE
147-
#include <avr/pgmspace.h>
147+
#ifdef ARDUINO_ARCH_AVR
148+
#include <avr/pgmspace.h>
149+
#endif
148150
#ifndef pgm_read_byte
149151
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
150152
#endif
@@ -168,7 +170,7 @@
168170
#ifndef pgm_read_word
169171
#define pgm_read_word(p) (*(p))
170172
#endif
171-
#ifndef pgm_read_ptr
173+
#if !defined pgm_read_ptr || defined ARDUINO_ARCH_MBED
172174
#define pgm_read_ptr(p) (*(p))
173175
#endif
174176
#ifndef PRIPSTR

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "RF24",
33
"keywords": "rf, radio, wireless, spi",
4-
"description": "Optimized High Speed Driver for nRF24L01(+) 2.4GHz Wireless Transceiver",
4+
"description": "Radio driver, OSI layer 2 library for nrf24L01(+) modules.",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/nRF24/RF24.git"
88
},
9-
"version": "1.3.8",
9+
"version": "1.3.9",
1010
"frameworks": "arduino",
1111
"platforms": [
1212
"atmelavr",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=RF24
2-
version=1.3.8
2+
version=1.3.9
33
author=TMRh20
44
maintainer=TMRh20,Avamander
55
sentence=Radio driver, OSI layer 2 library for nrf24L01(+) modules.

0 commit comments

Comments
 (0)