From 9d87157b6ac10a426fb59b44ea2c3805ea4f2d74 Mon Sep 17 00:00:00 2001 From: Josh Siegle Date: Wed, 25 Sep 2024 13:30:53 -0700 Subject: [PATCH] Check for device before changing LED status --- Source/DeviceThread.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/DeviceThread.cpp b/Source/DeviceThread.cpp index db0294b..6c9f5e7 100644 --- a/Source/DeviceThread.cpp +++ b/Source/DeviceThread.cpp @@ -2093,11 +2093,12 @@ int DeviceThread::getHeadstageChannel (int& hs, int ch) const void DeviceThread::enableBoardLeds(bool enable) { - settings.ledsEnabled = enable; - if (evalBoard == nullptr) + if (!deviceFound) return; + settings.ledsEnabled = enable; + if (isAcquisitionActive()) updateSettingsDuringAcquisition = true; else