Skip to content

Commit eff8173

Browse files
committed
Clean up logging and add electrode name check
1 parent 9289d3d commit eff8173

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Plugins/BasicSpikeDisplay/SpikeDetector/SpikeDetector.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ String SpikeDetector::ensureUniqueName(String name, uint16 currentStream)
384384

385385
// std::cout << "New name: " << nameToCheck;
386386

387+
nameToCheck.replaceCharacter('|','_');
388+
387389
return nameToCheck;
388390
}
389391

@@ -553,9 +555,7 @@ SpikeChannel* SpikeDetector::addSpikeChannel (SpikeChannel::Type type,
553555
void SpikeDetector::removeSpikeChannel (SpikeChannel* spikeChannel)
554556
{
555557

556-
LOGC("Total spike channels: ", spikeChannels.size());
557-
LOGC("Removing spike channel: ", spikeChannel->getName(), " from stream ", spikeChannel->getStreamId());
558-
//LOGC("Current stream has ", settings[spikeChannel->getStreamId()]->spikeChannels.size(), " spike channels");
558+
LOGD("Removing spike channel: ", spikeChannel->getName(), " from stream ", spikeChannel->getStreamId());
559559

560560
spikeChannels.removeObject(spikeChannel);
561561

0 commit comments

Comments
 (0)