From f2f0e2312bebe49c1346c9c19ecfb7c2027fa6fd Mon Sep 17 00:00:00 2001 From: Yveaux Date: Mon, 5 Oct 2015 08:43:55 +0200 Subject: [PATCH] Fix crash --- libraries/MySensors/utility/RF24.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/libraries/MySensors/utility/RF24.cpp b/libraries/MySensors/utility/RF24.cpp index 97546cd..b353b50 100644 --- a/libraries/MySensors/utility/RF24.cpp +++ b/libraries/MySensors/utility/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 = " "; - /****************************************************************************/ static void print_hex( uint8_t v, const bool prefix0x = false ) { @@ -302,7 +299,7 @@ void RF24::print_feature(void) #ifdef DEBUG Serial.print(F("FEATURE=")); print_hex(read_register(FEATURE), true); - Serial.println(space_str_P); + Serial.println(F("")); #endif } @@ -343,10 +340,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; @@ -369,9 +366,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;