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

This commit is contained in:
Daniel Wiegert
2014-09-07 23:58:18 +02:00
committed by Patrick Fallberg
parent ba098a95e2
commit 159c223882
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)
{
@@ -325,7 +326,7 @@ void RF24::print_address_register(const char* name, uint8_t reg, uint8_t qty)
printf_P(PSTR("\r\n"));
}
#endif
/****************************************************************************/
RF24::RF24(uint8_t _cepin, uint8_t _cspin):
+2 -2
View File
@@ -863,7 +863,7 @@ private:
* @return Current value of status register
*/
uint8_t get_status(void);
#if !defined (MINIMAL)
/**
* Decode and print the given status to stdout
*
@@ -907,7 +907,7 @@ private:
* @param qty How many successive registers to print
*/
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
*
+1 -1
View File
@@ -21,7 +21,7 @@
#include <stddef.h>
//TMRh20:
//#define MINIMAL
#define MINIMAL // saves 432 bytes!
// Define _BV for non-Arduino platforms and for Arduino DUE
#if defined (ARDUINO)