small debug improvements

- don't set -DNDEBUG -> this flag is "not recommended"
- minor change in deserializeMap() WLED_DEBUG code
This commit is contained in:
Frank
2023-05-25 21:38:08 +02:00
parent 5edd5e6592
commit 71153ee832
2 changed files with 5 additions and 4 deletions

View File

@@ -2187,9 +2187,9 @@ bool WS2812FX::deserializeMap(uint8_t n) {
#ifdef WLED_DEBUG
DEBUG_PRINTF("Custom ledmap: %d\n", loadedLedmap);
for (uint16_t i=0; i<customMappingSize; i++) {
if (!(i%Segment::maxWidth)) DEBUG_PRINTLN();
DEBUG_PRINTF("%4d,", customMappingTable[i]);
for (uint16_t j=0; j<customMappingSize; j++) { // fixing a minor warning: declaration of 'i' shadows a previous local
if (!(j%Segment::maxWidth)) DEBUG_PRINTLN();
DEBUG_PRINTF("%4d,", customMappingTable[j]);
}
DEBUG_PRINTLN();
#endif