WLED_DEBUG_MAPS flag added
This commit is contained in:
@@ -142,7 +142,7 @@ void WS2812FX::setUpMatrix() {
|
|||||||
// delete gap array as we no longer need it
|
// delete gap array as we no longer need it
|
||||||
if (gapTable) delete[] gapTable;
|
if (gapTable) delete[] gapTable;
|
||||||
|
|
||||||
#ifdef WLED_DEBUG
|
#ifdef WLED_DEBUG_MAPS
|
||||||
DEBUG_PRINTF("Matrix ledmap: \n");
|
DEBUG_PRINTF("Matrix ledmap: \n");
|
||||||
for (uint16_t i=0; i<customMappingSize; i++) {
|
for (uint16_t i=0; i<customMappingSize; i++) {
|
||||||
if (!(i%Segment::maxWidth)) DEBUG_PRINTLN();
|
if (!(i%Segment::maxWidth)) DEBUG_PRINTLN();
|
||||||
|
|||||||
@@ -2248,8 +2248,8 @@ bool WS2812FX::deserializeMap(uint8_t n) {
|
|||||||
loadedLedmap = n;
|
loadedLedmap = n;
|
||||||
f.close();
|
f.close();
|
||||||
|
|
||||||
#ifdef WLED_DEBUG
|
|
||||||
DEBUG_PRINTF("Custom ledmap: %d\n", loadedLedmap);
|
DEBUG_PRINTF("Custom ledmap: %d\n", loadedLedmap);
|
||||||
|
#ifdef WLED_DEBUG_MAPS
|
||||||
for (uint16_t j=0; j<customMappingSize; j++) { // fixing a minor warning: declaration of 'i' shadows a previous local
|
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();
|
if (!(j%Segment::maxWidth)) DEBUG_PRINTLN();
|
||||||
DEBUG_PRINTF("%4d,", customMappingTable[j]);
|
DEBUG_PRINTF("%4d,", customMappingTable[j]);
|
||||||
|
|||||||
Reference in New Issue
Block a user