From c25d84089e91c7e206365fe04b80dcbebf48b640 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Sun, 12 May 2019 11:49:21 -0600 Subject: [PATCH] Modify printDetails to work with ESP8266 Note: Requires latest version of ESP8266 Arduino firmware as of 05/19 --- RF24.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RF24.cpp b/RF24.cpp index 47bf99931..01ad69ff3 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -576,10 +576,10 @@ void RF24::printDetails(void) print_byte_register(PSTR("CONFIG\t"),NRF_CONFIG); print_byte_register(PSTR("DYNPD/FEATURE"),DYNPD,2); - printf_P(PSTR("Data Rate\t = " PRIPSTR "\r\n"),pgm_read_word(&rf24_datarate_e_str_P[getDataRate()])); - printf_P(PSTR("Model\t\t = " PRIPSTR "\r\n"),pgm_read_word(&rf24_model_e_str_P[isPVariant()])); - printf_P(PSTR("CRC Length\t = " PRIPSTR "\r\n"),pgm_read_word(&rf24_crclength_e_str_P[getCRCLength()])); - printf_P(PSTR("PA Power\t = " PRIPSTR "\r\n"), pgm_read_word(&rf24_pa_dbm_e_str_P[getPALevel()])); + printf_P(PSTR("Data Rate\t = " PRIPSTR "\r\n"),pgm_read_ptr(&rf24_datarate_e_str_P[getDataRate()])); + printf_P(PSTR("Model\t\t = " PRIPSTR "\r\n"),pgm_read_ptr(&rf24_model_e_str_P[isPVariant()])); + printf_P(PSTR("CRC Length\t = " PRIPSTR "\r\n"),pgm_read_ptr(&rf24_crclength_e_str_P[getCRCLength()])); + printf_P(PSTR("PA Power\t = " PRIPSTR "\r\n"), pgm_read_ptr(&rf24_pa_dbm_e_str_P[getPALevel()])); }