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

@ -57,6 +57,7 @@ uint8_t countBits64(uint64_t bits)
return n;
}
#if defined(ENABLE_DEBUG)
// Simple functions to convert from int to string
// Example from: https://stackoverflow.com/questions/8257714/how-to-convert-an-int-to-string-in-c
static uint8_t *i2str_helper(uint8_t *dest, uint32_t n, int32_t x) {
@ -83,3 +84,4 @@ uint8_t *i2str(uint8_t *dest, uint32_t n, int32_t x) {
*p = 0;
return dest;
}
#endif