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 c8dfeb0 commit f6245e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Source/DeviceThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2095,6 +2095,9 @@ void DeviceThread::enableBoardLeds(bool enable)
{
settings.ledsEnabled = enable;

if (evalBoard == nullptr)
return;

if (isAcquisitionActive())
updateSettingsDuringAcquisition = true;
else
Expand Down
2 changes: 1 addition & 1 deletion Source/OpenEphysLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern "C" EXPORT void getLibInfo(Plugin::LibraryInfo* info)
{
info->apiVersion = PLUGIN_API_VER;
info->name = "OE FPGA Acquisition Board";
info->libVersion = "0.2.7";
info->libVersion = "0.2.8";
info->numPlugins = NUM_PLUGINS;
}

Expand Down

0 comments on commit f6245e5

Please sign in to comment.