From f14c4cbe5b42974237a6b5c7de1f4afc255029fc Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:09:29 +0100 Subject: [PATCH] make presets with images work with FASTPATH seg.startFrame() is needed, otherwise nothing will be drawn. --- wled00/json.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wled00/json.cpp b/wled00/json.cpp index 7608503d..f1b75bed 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -328,6 +328,13 @@ bool deserializeSegment(JsonObject elem, byte it, byte presetId) if (!iarr.isNull()) { uint8_t oldMap1D2D = seg.map1D2D; seg.map1D2D = M12_Pixels; // no mapping + // WLEDMM begin - we need to init segment caches before putting any pixels + if (strip.isServicing()) { + USER_PRINTLN(F("deserializeSegment() image: strip is still drawing effects.")); + strip.waitUntilIdle(); + } + seg.startFrame(); + // WLEDMM end // set brightness immediately and disable transition transitionDelayTemp = 0;