Include more debug text in MINIMAL definition, and enable MINIMAL as default, saves 432bytes

This commit is contained in:
Daniel Wiegert
2014-08-28 14:30:42 +02:00
parent 5e5b756160
commit bfb8eff826
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -270,6 +270,7 @@ uint8_t RF24::get_status(void)
} }
/****************************************************************************/ /****************************************************************************/
#if !defined (MINIMAL)
void RF24::print_status(uint8_t status) void RF24::print_status(uint8_t status)
{ {
@@ -325,7 +326,7 @@ void RF24::print_address_register(const char* name, uint8_t reg, uint8_t qty)
printf_P(PSTR("\r\n")); printf_P(PSTR("\r\n"));
} }
#endif
/****************************************************************************/ /****************************************************************************/
RF24::RF24(uint8_t _cepin, uint8_t _cspin): RF24::RF24(uint8_t _cepin, uint8_t _cspin):
+2 -2
View File
@@ -863,7 +863,7 @@ private:
* @return Current value of status register * @return Current value of status register
*/ */
uint8_t get_status(void); uint8_t get_status(void);
#if !defined (MINIMAL)
/** /**
* Decode and print the given status to stdout * Decode and print the given status to stdout
* *
@@ -907,7 +907,7 @@ private:
* @param qty How many successive registers to print * @param qty How many successive registers to print
*/ */
void print_address_register(const char* name, uint8_t reg, uint8_t qty = 1); void print_address_register(const char* name, uint8_t reg, uint8_t qty = 1);
#endif
/** /**
* Turn on or off the special features of the chip * Turn on or off the special features of the chip
* *
+1 -1
View File
@@ -21,7 +21,7 @@
#include <stddef.h> #include <stddef.h>
//TMRh20: //TMRh20:
//#define MINIMAL #define MINIMAL // saves 432 bytes!
// Define _BV for non-Arduino platforms and for Arduino DUE // Define _BV for non-Arduino platforms and for Arduino DUE
#if defined (ARDUINO) #if defined (ARDUINO)