From c624f043d5383bbb2a75f6987b38df6804dd14ce Mon Sep 17 00:00:00 2001 From: Nico Stuurman Date: Tue, 10 Sep 2024 11:09:41 -0700 Subject: [PATCH] NIDAQ: add revert code missed in previous two commits. --- DeviceAdapters/NIDAQ/NIDigitalOutputPort.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DeviceAdapters/NIDAQ/NIDigitalOutputPort.cpp b/DeviceAdapters/NIDAQ/NIDigitalOutputPort.cpp index b608d3187..4f8e74379 100644 --- a/DeviceAdapters/NIDAQ/NIDigitalOutputPort.cpp +++ b/DeviceAdapters/NIDAQ/NIDigitalOutputPort.cpp @@ -108,6 +108,10 @@ int DigitalOutputPort::Initialize() if (GetHub()->StartDOBlankingAndOrSequence(tmpNiPort, portWidth_, true, false, 0, false, tmpTriggerTerminal) == DEVICE_OK) supportsBlankingAndSequencing_ = true; GetHub()->StopDOBlankingAndSequence(portWidth_); + if (!supportsBlankingAndSequencing_) + { + portWidth_ = oldPortWidth; + } } CPropertyAction* pAct;