IfDefs to quiet some other debug lines during debugging.

This commit is contained in:
Troy
2024-03-25 12:19:13 -04:00
parent cc01e38cad
commit 22be977df8
2 changed files with 6 additions and 2 deletions

View File

@@ -64,7 +64,9 @@ void WS2812FX::setUpMatrix() {
return; return;
} }
// TroyHacks temp commented out, FIXME and put back: USER_PRINTF("setUpMatrix %d x %d\n", Segment::maxWidth, Segment::maxHeight); #ifndef USERMOD_AUTO_PLAYLIST // TroyHacks - FIXME: just tidy output temporarily while debugging
USER_PRINTF("setUpMatrix %d x %d\n", Segment::maxWidth, Segment::maxHeight);
#endif
//WLEDMM recreate customMappingTable if more space needed //WLEDMM recreate customMappingTable if more space needed
if (Segment::maxWidth * Segment::maxHeight > customMappingTableSize) { if (Segment::maxWidth * Segment::maxHeight > customMappingTableSize) {

View File

@@ -124,7 +124,9 @@ void Segment::allocLeds() {
} // softhack007 clean up buffer } // softhack007 clean up buffer
} }
if ((size > 0) && (!ledsrgb || size > ledsrgbSize)) { //softhack dont allocate zero bytes if ((size > 0) && (!ledsrgb || size > ledsrgbSize)) { //softhack dont allocate zero bytes
// TroyHacks: FIXME reneable this later: USER_PRINTF("allocLeds (%d,%d to %d,%d), %u from %u\n", start, startY, stop, stopY, size, ledsrgb?ledsrgbSize:0); #ifndef USERMOD_AUTO_PLAYLIST // TroyHacks - FIXME: just tidy output temporarily while debugging
USER_PRINTF("allocLeds (%d,%d to %d,%d), %u from %u\n", start, startY, stop, stopY, size, ledsrgb?ledsrgbSize:0);
#endif
if (ledsrgb) free(ledsrgb); // we need a bigger buffer, so free the old one first if (ledsrgb) free(ledsrgb); // we need a bigger buffer, so free the old one first
ledsrgb = (CRGB*)calloc(size, 1); ledsrgb = (CRGB*)calloc(size, 1);
ledsrgbSize = ledsrgb?size:0; ledsrgbSize = ledsrgb?size:0;