Skip to content

Commit d130f87

Browse files
committed
Add error messages when lock is lost during acquisition
1 parent 9bbfae1 commit d130f87

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Source/OnixSource.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,20 @@ bool OnixSource::stopAcquisition()
498498

499499
if (!portA->getErrorFlag() && !portB->getErrorFlag())
500500
waitForThreadToExit(2000);
501+
else
502+
{
503+
if (portA->getErrorFlag())
504+
{
505+
LOGE("Port A lost communication lock. Reconnect hardware to continue.");
506+
CoreServices::sendStatusMessage("Port A lost communication lock");
507+
}
508+
509+
if (portB->getErrorFlag())
510+
{
511+
LOGE("Port B lost communication lock. Reconnect hardware to continue.");
512+
CoreServices::sendStatusMessage("Port B lost communication lock");
513+
}
514+
}
501515

502516
if (devicesFound)
503517
{

0 commit comments

Comments
 (0)