From abfdaf263423f91765dfbccd423cdae41b47cd2e Mon Sep 17 00:00:00 2001 From: Yveaux Date: Tue, 6 Oct 2015 21:19:17 +0200 Subject: [PATCH] Fix crash --- libraries/MySensors/drivers/RF24/RF24.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/libraries/MySensors/drivers/RF24/RF24.cpp b/libraries/MySensors/drivers/RF24/RF24.cpp index d8a6775..8caee73 100644 --- a/libraries/MySensors/drivers/RF24/RF24.cpp +++ b/libraries/MySensors/drivers/RF24/RF24.cpp @@ -10,9 +10,6 @@ #include "RF24_config.h" #include "RF24.h" -// Save some bytes by reusing strings. -static const char space_str_P[] PROGMEM = " "; - /****************************************************************************/ #ifdef MY_DEBUG_VERBOSE static void print_hex( uint8_t v, const bool prefix0x = false ) @@ -304,7 +301,7 @@ void RF24::print_feature(void) #ifdef MY_DEBUG_VERBOSE Serial.print(F("FEATURE=")); print_hex(read_register(FEATURE), true); - Serial.println(space_str_P); + Serial.println(F("")); #endif } @@ -345,10 +342,10 @@ void RF24::print_byte_register(uint8_t reg, uint8_t qty) while (qty--) { print_hex(read_register(reg++), prefix0x); - Serial.print(space_str_P); + Serial.print(F(" ")); prefix0x = false; } - Serial.println(space_str_P); + Serial.println(F("")); #else (void)reg; (void)qty; @@ -371,9 +368,9 @@ void RF24::print_address_register(uint8_t reg, uint8_t qty) print_hex(read_register(*bufptr), prefix0x); prefix0x = false; } - Serial.print(space_str_P); + Serial.print(F(" ")); } - Serial.println(space_str_P); + Serial.println(F("")); #else (void)reg; (void)qty;