@@ -404,7 +404,7 @@ bool OnixSource::initializeDevices(device_map_t deviceTable, bool updateStreamIn
404404 polledBno->setBnoAxisMap (PolledBno055::Bno055AxisMap::YZX);
405405 polledBno->setBnoAxisSign ((uint32_t )(PolledBno055::Bno055AxisSign::MirrorX) | (uint32_t )(PolledBno055::Bno055AxisSign::MirrorY));
406406
407- hubNames.insert ({ PortController::getOffsetFromIndex (polledBno->getDeviceIdx ()), NEUROPIXELSV2E_HEADSTAGE_NAME });
407+ hubNames.insert ({ PortController::getOffset (polledBno->getDeviceIdx ()), NEUROPIXELSV2E_HEADSTAGE_NAME });
408408 }
409409 else if (hsid == 0xFFFFFFFF || hsid == ONIX_HUB_HSNP1ET || hsid == ONIX_HUB_HSNP1EH)
410410 {
@@ -437,7 +437,7 @@ bool OnixSource::initializeDevices(device_map_t deviceTable, bool updateStreamIn
437437 polledBno->setBnoAxisMap (PolledBno055::Bno055AxisMap::YZX);
438438 polledBno->setBnoAxisSign ((uint32_t )(PolledBno055::Bno055AxisSign::MirrorX) | (uint32_t )(PolledBno055::Bno055AxisSign::MirrorZ));
439439
440- hubNames.insert ({ PortController::getOffsetFromIndex (polledBno->getDeviceIdx ()), NEUROPIXELSV1E_HEADSTAGE_NAME });
440+ hubNames.insert ({ PortController::getOffset (polledBno->getDeviceIdx ()), NEUROPIXELSV1E_HEADSTAGE_NAME });
441441 }
442442 }
443443 }
@@ -555,11 +555,11 @@ OnixDeviceVector OnixSource::getEnabledDataSources()
555555OnixDeviceVector OnixSource::getDataSourcesFromOffset (int offset)
556556{
557557 OnixDeviceVector devices{};
558- offset = PortController::getOffsetFromIndex (offset);
558+ offset = PortController::getOffset (offset);
559559
560560 for (const auto & source : sources)
561561 {
562- if (PortController::getOffsetFromIndex (source->getDeviceIdx ()) == offset)
562+ if (PortController::getOffset (source->getDeviceIdx ()) == offset)
563563 devices.emplace_back (source);
564564 }
565565
@@ -770,7 +770,7 @@ void OnixSource::updateSettings(OwnedArray<ContinuousChannel>* continuousChannel
770770 deviceInfos->add (new DeviceInfo (deviceSettings));
771771
772772 DataStream::Settings dataStreamSettings{
773- OnixDevice::createStreamName ({OnixDevice::getPortNameFromIndex (source->getDeviceIdx ()), source->getHubName (), source->getName ()}),
773+ OnixDevice::createStreamName ({OnixDevice::getPortName (source->getDeviceIdx ()), source->getHubName (), source->getName ()}),
774774 " Continuous data from a Bno055 9-axis IMU" ,
775775 source->getStreamIdentifier (),
776776 source->streamInfos [0 ].getSampleRate ()
0 commit comments