From fcead94276c8cb2d77b52b22d2e0fd1bd5b7eac5 Mon Sep 17 00:00:00 2001 From: Josh Siegle Date: Tue, 30 Apr 2024 16:49:53 -0700 Subject: [PATCH] More verbose console output --- Source/DeviceThread.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/DeviceThread.cpp b/Source/DeviceThread.cpp index 8b649ee..a05b414 100644 --- a/Source/DeviceThread.cpp +++ b/Source/DeviceThread.cpp @@ -255,7 +255,7 @@ void DeviceThread::handleBroadcastMessage(String msg) digitalOutputCommands.push(command); DigitalOutputTimer* timer = new DigitalOutputTimer(this, ttlLine, eventDurationMs); - + digitalOutputTimers.add(timer); } @@ -373,6 +373,9 @@ 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.", @@ -380,10 +383,12 @@ bool DeviceThread::openBoard(bool displayInfo) if (response) { + LOGC(" Checking again..."); openBoard(); // call recursively } else { + LOGC(" User canceled device search."); deviceFound = false; }