Skip to content

Commit da66dd7

Browse files
authored
Merge pull request #153 from open-ephys-plugins/issue-150
Corrects the output to be PCIe host
2 parents a19f581 + 83a5c4c commit da66dd7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Source/OnixSource.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ bool OnixSource::checkHubFirmwareCompatibility (std::shared_ptr<Onix1> context,
275275

276276
for (const auto& [hubIndex, hubId] : hubIds)
277277
{
278-
if (hubId == ONIX_HUB_FMCHOST) // NB: Breakout Board
278+
if (hubId == ONIX_HUB_FMCHOST)
279279
{
280280
static constexpr int RequiredMajorVersion = 2;
281281
uint32_t firmwareVersion = 0;
@@ -287,16 +287,16 @@ bool OnixSource::checkHubFirmwareCompatibility (std::shared_ptr<Onix1> context,
287287
auto majorVersion = (firmwareVersion & 0xFF00) >> 8;
288288
auto minorVersion = firmwareVersion & 0xFF;
289289

290-
LOGC ("Breakout board firmware version: v", majorVersion, ".", minorVersion);
290+
LOGC ("PCIe Host firmware version: v", majorVersion, ".", minorVersion);
291291

292292
if (majorVersion != RequiredMajorVersion)
293293
{
294294
Onix1::showWarningMessageBoxAsync (
295295
"Invalid Firmware Version",
296-
"The breakout board firmware major version is v"
296+
"The PCIe Host firmware major version is v"
297297
+ std::to_string (majorVersion) + ", but this plugin is only compatible with v"
298-
+ std::to_string (RequiredMajorVersion) + ". To use this plugin, upgrade the firmware"
299-
+ " to a version that supports the breakout board v" + std::to_string (majorVersion));
298+
+ std::to_string (RequiredMajorVersion) + ". To use this plugin, modify the firmware"
299+
+ " to version v" + std::to_string (majorVersion));
300300
return false;
301301
}
302302
}
@@ -336,7 +336,7 @@ bool OnixSource::initializeDevices (device_map_t deviceTable, bool updateStreamI
336336
// NB: Search through all hubs, and initialize devices
337337
for (const auto& [hubIndex, hubId] : hubIds)
338338
{
339-
if (hubId == ONIX_HUB_FMCHOST) // NB: Breakout Board
339+
if (hubId == ONIX_HUB_FMCHOST)
340340
{
341341
hubNames.insert ({ hubIndex, BREAKOUT_BOARD_NAME });
342342

0 commit comments

Comments
 (0)