StimBuff: DevAttSpec should be a sh_ptr, not a plain ref
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user