fix realtimeOverride behaviour
the previous condition was not aligned with the override condition used in other places
This commit is contained in:
@@ -214,8 +214,14 @@ void realtimeLock(uint32_t timeoutMs, byte md)
|
|||||||
// positive side-effect: this also introduces a wait if other bus activities are happeening in parallel
|
// positive side-effect: this also introduces a wait if other bus activities are happeening in parallel
|
||||||
Segment& mainSegRef = strip.getMainSegment();
|
Segment& mainSegRef = strip.getMainSegment();
|
||||||
theMainSeg = &mainSegRef; //convert from reference to pointer
|
theMainSeg = &mainSegRef; //convert from reference to pointer
|
||||||
theMainSegLength = realtimeOverride ? 0 : theMainSeg->length();
|
if (realtimeOverride && !(realtimeMode && useMainSegmentOnly)) {
|
||||||
theStripLength = realtimeOverride ? 0 : strip.getLengthTotal();
|
// prevent drawing during user override
|
||||||
|
theMainSegLength = 0;
|
||||||
|
theStripLength = 0;
|
||||||
|
} else {
|
||||||
|
theMainSegLength = theMainSeg->length();
|
||||||
|
theStripLength = strip.getLengthTotal();
|
||||||
|
}
|
||||||
esp32SemGive(busDrawMux);
|
esp32SemGive(busDrawMux);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user