Skip to content

Commit

Permalink
Check for device before changing LED status
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Sep 25, 2024
1 parent f6245e5 commit 9d87157
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/DeviceThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d87157

Please sign in to comment.