StimBuff: DevAttSpec should be a sh_ptr, not a plain ref

This commit is contained in:
2025-11-04 00:46:07 -04:00
parent 032e9ef8d5
commit f3a4c69597
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ getStimBuff(const std::shared_ptr<smo::device::DeviceAttachmentSpec>& spec)
for (const auto& stimBuff : attachedStimBuffs)
{
// Compare device selectors to find matching buffer
if (stimBuff->deviceAttachmentSpec.deviceSelector
if (stimBuff->deviceAttachmentSpec->deviceSelector
== spec->deviceSelector)
{
return stimBuff;
@@ -197,7 +197,7 @@ public:
StimulusBuffer::PcloudFormatDesc formatDesc;
formatDesc.format = StimulusBuffer::PcloudFormatDesc::Format::XYZI;
auto pcloudStimBuff = std::make_shared<PcloudStimulusBuffer>(
*context->spec, context->deviceTmp, formatDesc, histbuffMs, 30);
context->spec, context->deviceTmp, formatDesc, histbuffMs, 30);
context->stimBuff = pcloudStimBuff;
context->deviceTmp->nAttachedStimBuffs++;