Skip to content

Commit 44ea936

Browse files
committed
Merge pull request arduino#222 from Yveaux/gateway-refactoring
Fix crash
2 parents b981b49 + abfdaf2 commit 44ea936

File tree

1 file changed

+5
-8
lines changed
  • libraries/MySensors/drivers/RF24

1 file changed

+5
-8
lines changed

libraries/MySensors/drivers/RF24/RF24.cpp

+5-8
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
#include "RF24_config.h"
1111
#include "RF24.h"
1212

13-
// Save some bytes by reusing strings.
14-
static const char space_str_P[] PROGMEM = " ";
15-
1613
/****************************************************************************/
1714
#ifdef MY_DEBUG_VERBOSE
1815
static void print_hex( uint8_t v, const bool prefix0x = false )
@@ -304,7 +301,7 @@ void RF24::print_feature(void)
304301
#ifdef MY_DEBUG_VERBOSE
305302
Serial.print(F("FEATURE="));
306303
print_hex(read_register(FEATURE), true);
307-
Serial.println(space_str_P);
304+
Serial.println(F(""));
308305
#endif
309306
}
310307

@@ -345,10 +342,10 @@ void RF24::print_byte_register(uint8_t reg, uint8_t qty)
345342
while (qty--)
346343
{
347344
print_hex(read_register(reg++), prefix0x);
348-
Serial.print(space_str_P);
345+
Serial.print(F(" "));
349346
prefix0x = false;
350347
}
351-
Serial.println(space_str_P);
348+
Serial.println(F(""));
352349
#else
353350
(void)reg;
354351
(void)qty;
@@ -371,9 +368,9 @@ void RF24::print_address_register(uint8_t reg, uint8_t qty)
371368
print_hex(read_register(*bufptr), prefix0x);
372369
prefix0x = false;
373370
}
374-
Serial.print(space_str_P);
371+
Serial.print(F(" "));
375372
}
376-
Serial.println(space_str_P);
373+
Serial.println(F(""));
377374
#else
378375
(void)reg;
379376
(void)qty;

0 commit comments

Comments
 (0)