partly disable waitUntilIdle() as its still work-in-progress
This disables parts of the new feature that might lead to delays, so basicially there is some detection, but no protection any more. further development needed --> audio_fastpath branch compile with -D WLEDMM_PROTECT_SERVICE to enable full protection.
This commit is contained in:
@@ -91,7 +91,7 @@ bool deserializeSegment(JsonObject elem, byte it, byte presetId)
|
||||
// WLEDMM: before changing segments, make sure our strip is _not_ servicing effects in parallel
|
||||
suspendStripService = true; // temporarily lock out strip updates
|
||||
if (strip.isServicing()) {
|
||||
USER_PRINTLN(F("deserializeSegment(): strip is still drawing effects, waiting ..."));
|
||||
USER_PRINTLN(F("deserializeSegment(): strip is still drawing effects."));
|
||||
strip.waitUntilIdle();
|
||||
}
|
||||
|
||||
@@ -410,7 +410,7 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
|
||||
// WLEDMM: before changing strip, make sure our strip is _not_ servicing effects in parallel
|
||||
suspendStripService = true; // temporarily lock out strip updates
|
||||
if (strip.isServicing()) {
|
||||
USER_PRINTLN(F("deserializeState(): strip is still drawing effects, waiting ..."));
|
||||
USER_PRINTLN(F("deserializeState(): strip is still drawing effects."));
|
||||
strip.waitUntilIdle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user