mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2026-04-05 14:25:28 +00:00
Optional debug messages at compile time to save FLASH space
This commit is contained in:
parent
64cad981fa
commit
37724bbabf
16 changed files with 63 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue