clarifications (minor)

* replace delay by vTaskDelay (same behaviour)
* degrade user message to debug (expected behaviour -> no message)
* add pdMS_TO_TICKS to esp32SemTake macro (future proof)
This commit is contained in:
Frank
2025-12-23 01:59:59 +01:00
parent 655330d1a6
commit 2775b16141
2 changed files with 3 additions and 3 deletions

View File

@@ -540,9 +540,9 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
#ifdef ARDUINO_ARCH_ESP32
// WLEDMM: Acquire strip lock right before segment operations (deferred for better UX)
suspendStripService = true; // temporarily lock out strip updates
delay(2); // WLEDMM experimental - de-serialize takes time, so allow other tasks to run
vTaskDelay(pdMS_TO_TICKS(2)); // WLEDMM trigger a short task context switch
if (strip.isServicing()) {
USER_PRINTLN(F("deserializeState(): strip is still drawing effects."));
DEBUG_PRINTLN(F("deserializeState(): strip is still drawing effects."));
strip.waitUntilIdle();
}
#endif