Include more debug text in MINIMAL definition, and enable MINIMAL as default, saves 432bytes
This commit is contained in:
Regular → Executable
+2
-1
@@ -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):
|
||||
|
||||
Regular → Executable
+2
-2
@@ -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
|
||||
*
|
||||
|
||||
Regular → Executable
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user