Optional debug messages at compile time to save FLASH space

This commit is contained in:
Andy CA6JAU 2018-02-16 21:30:30 -03:00
parent 64cad981fa
commit 37724bbabf
16 changed files with 63 additions and 4 deletions

View file

@ -48,12 +48,14 @@ public:
void writeNXDNData(const uint8_t* data, uint8_t length);
void writeNXDNLost();
#if defined(ENABLE_DEBUG)
void writeDebug(const char* text);
void writeDebug(const char* text, int16_t n1);
void writeDebugI(const char* text, int32_t n1);
void writeDebug(const char* text, int16_t n1, int16_t n2);
void writeDebug(const char* text, int16_t n1, int16_t n2, int16_t n3);
void writeDebug(const char* text, int16_t n1, int16_t n2, int16_t n3, int16_t n4);
#endif
private:
uint8_t m_buffer[256U];