livoxGen1: call PcloudStimulusBuffer::start/stop

We now call start()/stop() in attach/detachDeviceReq.
This commit is contained in:
2025-11-01 03:32:05 -04:00
parent c8474edad7
commit a32b4f05d1
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -213,6 +213,8 @@ public:
context->deviceTmp->nAttachedStimBuffs++;
attachedStimBuffs.push_back(pcloudStimBuff);
pcloudStimBuff->start();
if (1 || OptionParser::getOptions().verbose)
{
std::cout << __func__ << ": Got return mode (" << (int)mode
@@ -345,6 +347,7 @@ public:
// Fallthrough.
}
context->stimBuff->stop();
// Remove stimulus buffer from collection before destroying device
context->stimBuff->device->nAttachedStimBuffs--;
auto it = std::find(