Skip to content

Commit

Permalink
More verbose console output
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Apr 30, 2024
1 parent 74bb780 commit fcead94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/DeviceThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void DeviceThread::handleBroadcastMessage(String msg)
digitalOutputCommands.push(command);

DigitalOutputTimer* timer = new DigitalOutputTimer(this, ttlLine, eventDurationMs);

digitalOutputTimers.add(timer);

}
Expand Down Expand Up @@ -373,17 +373,22 @@ bool DeviceThread::openBoard(bool displayInfo)
}
else // board could not be opened
{

LOGC("No ONI device found. Is one connected?")

bool response = AlertWindow::showOkCancelBox(AlertWindow::NoIcon,
"Acquisition board not found.",
"An acquisition board could not be found. Please connect one now.",
"OK", "Cancel", 0, 0);

if (response)
{
LOGC(" Checking again...");
openBoard(); // call recursively
}
else
{
LOGC(" User canceled device search.");
deviceFound = false;
}

Expand Down

0 comments on commit fcead94

Please sign in to comment.