In quad mode, stop autocirculate on the other channels before starting

It might theoretically be running from single link mode from a previous
run that was not cleaned up properly.
This commit is contained in:
Sebastian Dröge 2021-08-18 10:50:15 +03:00
parent e116719597
commit 4d95164c0c

View file

@ -1622,6 +1622,12 @@ restart:
ShmMutexLocker locker;
self->device->device->AutoCirculateStop(self->channel);
if (self->quad_mode) {
for (int i = 1; i < 4; i++) {
self->device->device->AutoCirculateStop(
(NTV2Channel)(self->channel + i));
}
}
self->device->device->EnableInputInterrupt(self->channel);
self->device->device->SubscribeInputVerticalEvent(self->channel);