Skip to content

Commit 76cd614

Browse files
committed
Merge pull request arduino#29 from Damme/MQTTGateway
Include more debug text in MINIMAL definition, and enable MINIMAL as default
2 parents 9d42ac4 + bfb8eff commit 76cd614

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

libraries/MySensors/utility/RF24.cpp

100644100755
+2-1
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ uint8_t RF24::get_status(void)
270270
}
271271

272272
/****************************************************************************/
273+
#if !defined (MINIMAL)
273274

274275
void RF24::print_status(uint8_t status)
275276
{
@@ -325,7 +326,7 @@ void RF24::print_address_register(const char* name, uint8_t reg, uint8_t qty)
325326

326327
printf_P(PSTR("\r\n"));
327328
}
328-
329+
#endif
329330
/****************************************************************************/
330331

331332
RF24::RF24(uint8_t _cepin, uint8_t _cspin):

libraries/MySensors/utility/RF24.h

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ class RF24
863863
* @return Current value of status register
864864
*/
865865
uint8_t get_status(void);
866-
866+
#if !defined (MINIMAL)
867867
/**
868868
* Decode and print the given status to stdout
869869
*
@@ -907,7 +907,7 @@ class RF24
907907
* @param qty How many successive registers to print
908908
*/
909909
void print_address_register(const char* name, uint8_t reg, uint8_t qty = 1);
910-
910+
#endif
911911
/**
912912
* Turn on or off the special features of the chip
913913
*

libraries/MySensors/utility/RF24_config.h

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stddef.h>
2222

2323
//TMRh20:
24-
//#define MINIMAL
24+
#define MINIMAL // saves 432 bytes!
2525

2626
// Define _BV for non-Arduino platforms and for Arduino DUE
2727
#if defined (ARDUINO)

0 commit comments

Comments
 (0)