setLegsEnabledForCapture method
Switches the two heap_growing legs on or off, so a capture can
record each leg's evidence alone. Does nothing unless captureMode
is true; a normal session always runs both legs.
Implementation
void setLegsEnabledForCapture({bool? floor, bool? sample}) {
if (!captureMode) return;
if (floor != null && floor != _floorLegEnabled) {
_floorLegEnabled = floor;
_floor.clear(notBeforeMs: _floorNotBeforeNow());
}
if (sample != null && sample != _sampleLegEnabled) {
_sampleLegEnabled = sample;
_sampleSustainedStart = null;
}
_evaluate();
}