Skip to content

Commit 9a974cd

Browse files
committed
Fix crash on rhtyhm node when updating noise slicer when acq. active
1 parent 75b5368 commit 9a974cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Plugins/IntanRecordingController/RHD2000Thread.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,7 @@ void RHD2000Thread::setFastTTLSettle(bool state, int channel)
10811081
int RHD2000Thread::setNoiseSlicerLevel(int level)
10821082
{
10831083
desiredNoiseSlicerLevel = level;
1084-
if (deviceFound)
1085-
evalBoard->setAudioNoiseSuppress(desiredNoiseSlicerLevel);
1084+
dacOutputShouldChange = true;
10861085

10871086
// Level has been checked once before this and then is checked again in setAudioNoiseSuppress.
10881087
// This may be overkill - maybe API should change so that the final function returns the value?
@@ -1671,6 +1670,7 @@ bool RHD2000Thread::updateBuffer()
16711670
evalBoard->setExternalFastSettleChannel(fastSettleTTLChannel);
16721671
evalBoard->setDacHighpassFilter(desiredDAChpf);
16731672
evalBoard->enableDacHighpassFilter(desiredDAChpfState);
1673+
evalBoard->setAudioNoiseSuppress(desiredNoiseSlicerLevel);
16741674

16751675
dacOutputShouldChange = false;
16761676
}

0 commit comments

Comments
 (0)