@@ -323,7 +323,6 @@ bool OnixSource::initializeDevices(device_map_t deviceTable, bool updateStreamIn
323323 if (hubId == ONIX_HUB_FMCHOST) // NB: Breakout Board
324324 {
325325 hubNames.insert ({ hubIndex, BREAKOUT_BOARD_NAME });
326- auto canvas = editor->getCanvas ();
327326
328327 devicesFound = configureDevice<OutputClock>(sources, editor, " Output Clock" , BREAKOUT_BOARD_NAME, OutputClock::getDeviceType (), hubIndex + 5 , context);
329328 if (!devicesFound)
@@ -429,7 +428,7 @@ bool OnixSource::initializeDevices(device_map_t deviceTable, bool updateStreamIn
429428 polledBno->setBnoAxisMap (PolledBno055::Bno055AxisMap::YZX);
430429 polledBno->setBnoAxisSign ((uint32_t )(PolledBno055::Bno055AxisSign::MirrorX) | (uint32_t )(PolledBno055::Bno055AxisSign::MirrorY));
431430
432- hubNames.insert ({ PortController ::getOffset (polledBno->getDeviceIdx ()), NEUROPIXELSV2E_HEADSTAGE_NAME });
431+ hubNames.insert ({ OnixDevice ::getOffset (polledBno->getDeviceIdx ()), NEUROPIXELSV2E_HEADSTAGE_NAME });
433432 }
434433 else if (hsid == 0xFFFFFFFF || hsid == ONIX_HUB_HSNP1ET || hsid == ONIX_HUB_HSNP1EH)
435434 {
@@ -462,7 +461,7 @@ bool OnixSource::initializeDevices(device_map_t deviceTable, bool updateStreamIn
462461 polledBno->setBnoAxisMap (PolledBno055::Bno055AxisMap::YZX);
463462 polledBno->setBnoAxisSign ((uint32_t )(PolledBno055::Bno055AxisSign::MirrorX) | (uint32_t )(PolledBno055::Bno055AxisSign::MirrorZ));
464463
465- hubNames.insert ({ PortController ::getOffset (polledBno->getDeviceIdx ()), NEUROPIXELSV1E_HEADSTAGE_NAME });
464+ hubNames.insert ({ OnixDevice ::getOffset (polledBno->getDeviceIdx ()), NEUROPIXELSV1E_HEADSTAGE_NAME });
466465 }
467466 }
468467 }
@@ -580,11 +579,11 @@ OnixDeviceVector OnixSource::getEnabledDataSources()
580579OnixDeviceVector OnixSource::getDataSourcesFromOffset (int offset)
581580{
582581 OnixDeviceVector devices{};
583- offset = PortController ::getOffset (offset);
582+ offset = OnixDevice ::getOffset (offset);
584583
585584 for (const auto & source : sources)
586585 {
587- if (PortController ::getOffset (source->getDeviceIdx ()) == offset)
586+ if (OnixDevice ::getOffset (source->getDeviceIdx ()) == offset)
588587 devices.emplace_back (source);
589588 }
590589
0 commit comments