@@ -124,8 +124,10 @@ bool OnixSource::configureDevice(OnixDeviceVector& sources,
124124 LOGD (" Difference in names found for device at address " , deviceIdx, " . Found " , deviceName, " on " , hubName, " , but was expecting " , device->getName (), " on " , device->getHubName ());
125125 }
126126 }
127- else if (device->getDeviceType () == OnixDeviceType::HEARTBEAT || device->getDeviceType () == OnixDeviceType::MEMORYMONITOR) // NB: These are devices with no equivalent settings tab that still need to be created and added to the vector of devices
128- {
127+ else if (device->getDeviceType () == OnixDeviceType::HEARTBEAT ||
128+ device->getDeviceType () == OnixDeviceType::PERSISTENTHEARTBEAT ||
129+ device->getDeviceType () == OnixDeviceType::MEMORYMONITOR)
130+ {// NB: These are devices with no equivalent settings tab that still need to be created and added to the vector of devices
129131 LOGD (" Creating new device " , deviceName, " on " , hubName);
130132 device = std::make_shared<Device>(deviceName, hubName, deviceIdx, ctx);
131133 }
@@ -248,10 +250,10 @@ bool OnixSource::checkHubFirmwareCompatibility(std::shared_ptr<Onix1> context, d
248250 if (majorVersion != RequiredMajorVersion)
249251 {
250252 Onix1::showWarningMessageBoxAsync (
251- " Invalid Firmware Version" ,
252- " The breakout board firmware major version is v" + std::to_string (majorVersion) +
253- " , but this plugin is only compatible with v" + std::to_string (RequiredMajorVersion) +
254- " . To use this plugin, upgrade the firmware to a version that supports the breakout board v" + std::to_string (majorVersion));
253+ " Invalid Firmware Version" ,
254+ " The breakout board firmware major version is v" + std::to_string (majorVersion) +
255+ " , but this plugin is only compatible with v" + std::to_string (RequiredMajorVersion) +
256+ " . To use this plugin, upgrade the firmware to a version that supports the breakout board v" + std::to_string (majorVersion));
255257 return false ;
256258 }
257259 }
@@ -294,8 +296,8 @@ bool OnixSource::initializeDevices(device_map_t deviceTable, bool updateStreamIn
294296 hubNames.insert ({ hubIndex, BREAKOUT_BOARD_NAME });
295297 auto canvas = editor->getCanvas ();
296298
297- devicesFound = configureDevice<Heartbeat >(sources, canvas, " Heartbeat" , BREAKOUT_BOARD_NAME, Heartbeat ::getDeviceType (), hubIndex, context);
298- if (!devicesFound)
299+ devicesFound = configureDevice<PersistentHeartbeat >(sources, canvas, " Heartbeat" , BREAKOUT_BOARD_NAME, PersistentHeartbeat ::getDeviceType (), hubIndex, context);
300+ if (!devicesFound)
299301 {
300302 sources.clear ();
301303 return false ;
@@ -599,7 +601,10 @@ std::map<int, OnixDeviceType> OnixSource::createDeviceMap(OnixDeviceVector devic
599601
600602 for (const auto & device : devices)
601603 {
602- if (filterDevices && (device->getDeviceType () == OnixDeviceType::HEARTBEAT || device->getDeviceType () == OnixDeviceType::MEMORYMONITOR)) continue ;
604+ if (filterDevices &&
605+ (device->getDeviceType () == OnixDeviceType::HEARTBEAT ||
606+ device->getDeviceType () == OnixDeviceType::PERSISTENTHEARTBEAT ||
607+ device->getDeviceType () == OnixDeviceType::MEMORYMONITOR)) continue ;
603608
604609 deviceMap.insert ({ device->getDeviceIdx (), device->getDeviceType () });
605610 }
0 commit comments