Skip to content
Snippets Groups Projects
Commit 98a378dd authored by Josh Siegle's avatar Josh Siegle
Browse files

Don't allow ADC or rescan buttons to be clicked while acquisition is active

parent 977a02eb
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ void RHD2000Editor::scanPorts()
void RHD2000Editor::buttonEvent(Button* button)
{
if (button == rescanButton)
if (button == rescanButton && !acquisitionIsActive)
{
board->scanPorts();
......@@ -133,7 +133,7 @@ void RHD2000Editor::buttonEvent(Button* button)
{
channelSelector->setRadioStatus(true);
}
else if (button == adcButton)
else if (button == adcButton && !acquisitionIsActive)
{
board->enableAdcs(button->getToggleState());
getEditorViewport()->makeEditorVisible(this, false, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment