From f300ffdbe948c6bffeba68331fec0cf5466706a5 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Thu, 1 Jun 2023 22:57:15 +0200 Subject: [PATCH] debug out: flush serial buffer after dumping out ledmap. --- wled00/FX_2Dfcn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wled00/FX_2Dfcn.cpp b/wled00/FX_2Dfcn.cpp index 32671788..c97b5afc 100644 --- a/wled00/FX_2Dfcn.cpp +++ b/wled00/FX_2Dfcn.cpp @@ -140,6 +140,7 @@ void WS2812FX::setUpMatrix() { DEBUG_PRINTF("%4d,", customMappingTable[i]); } DEBUG_PRINTLN(); + USER_FLUSH(); // wait until serial buffer is written out - to avoid loss/corruption of future debug messages #endif } else { // memory allocation error DEBUG_PRINTLN(F("Ledmap alloc error."));