Skip to content

Commit

Permalink
Prevent crash when board is disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Sep 24, 2024
1 parent ec13fda commit bf72f80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/DeviceThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2062,6 +2062,9 @@ void DeviceThread::enableBoardLeds(bool enable)
{
settings.ledsEnabled = enable;

if (evalBoard == nullptr)
return;

if (isAcquisitionActive())
updateSettingsDuringAcquisition = true;
else
Expand Down

0 comments on commit bf72f80

Please sign in to comment.