@@ -799,7 +799,8 @@ void OnixSource::updateSettings(OwnedArray<ContinuousChannel>* continuousChannel
799799 OnixDevice::createStreamName ({OnixDevice::getPortNameFromIndex (source->getDeviceIdx ()), source->getHubName (), source->getName ()}),
800800 " Continuous data from a Bno055 9-axis IMU" ,
801801 source->getStreamIdentifier (),
802- source->streamInfos [0 ].getSampleRate ()
802+ source->streamInfos [0 ].getSampleRate (),
803+ true
803804 };
804805
805806 addCombinedStreams (dataStreamSettings, source->streamInfos , dataStreams, deviceInfos, continuousChannels);
@@ -934,7 +935,8 @@ void OnixSource::addIndividualStreams(Array<StreamInfo> streamInfos,
934935 streamInfo.getName (),
935936 streamInfo.getDescription (),
936937 streamInfo.getStreamIdentifier (),
937- streamInfo.getSampleRate ()
938+ streamInfo.getSampleRate (),
939+ true
938940 };
939941
940942 DataStream* stream = new DataStream (streamSettings);
@@ -1050,9 +1052,7 @@ bool OnixSource::stopAcquisition()
10501052 if (!portA->getErrorFlag () && !portB->getErrorFlag ())
10511053 waitForThreadToExit (2000 );
10521054
1053- auto polledBno055s = getDevices (OnixDeviceType::POLLEDBNO);
1054-
1055- for (const auto & polledBno055 : polledBno055s)
1055+ for (const auto & polledBno055 : getDevices (OnixDeviceType::POLLEDBNO))
10561056 {
10571057 if (polledBno055 != nullptr && polledBno055->isEnabled ())
10581058 polledBno055->stopAcquisition (); // NB: Polled BNO must be stopped before other devices to ensure there are no stream clashes
0 commit comments