Skip to content

Commit

Permalink
Start canvas acquisition even if probe is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Nov 3, 2024
1 parent e18fce8 commit 54b4b5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/NeuropixCanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void NeuropixCanvas::startAcquisition()
{
for (auto settingsInterface : settingsInterfaces)
{
if (settingsInterface->dataSource != nullptr && settingsInterface->dataSource->isEnabled)
if (settingsInterface->dataSource != nullptr)
{
settingsInterface->startAcquisition();
}
Expand All @@ -252,7 +252,7 @@ void NeuropixCanvas::stopAcquisition()
{
for (auto settingsInterface : settingsInterfaces)
{
if (settingsInterface->dataSource != nullptr && settingsInterface->dataSource->isEnabled)
if (settingsInterface->dataSource != nullptr)
{
settingsInterface->stopAcquisition();
}
Expand Down
6 changes: 6 additions & 0 deletions Source/UI/NeuropixInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,9 @@ void NeuropixInterface::startAcquisition()
if (enableButton != nullptr)
enableButton->setEnabled (enabledState);

if (probeEnableButton != nullptr)
probeEnableButton->setEnabled (enabledState);

if (electrodeConfigurationComboBox != nullptr)
electrodeConfigurationComboBox->setEnabled (enabledState);

Expand Down Expand Up @@ -1236,6 +1239,9 @@ void NeuropixInterface::stopAcquisition()
if (enableButton != nullptr)
enableButton->setEnabled (enabledState);

if (probeEnableButton != nullptr)
probeEnableButton->setEnabled (enabledState);

if (electrodeConfigurationComboBox != nullptr)
electrodeConfigurationComboBox->setEnabled (enabledState);

Expand Down

0 comments on commit 54b4b5e

Please sign in to comment.