Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Source/OnixSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ bool OnixSource::checkHubFirmwareCompatibility (std::shared_ptr<Onix1> context,

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

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

if (majorVersion != RequiredMajorVersion)
{
Onix1::showWarningMessageBoxAsync (
"Invalid Firmware Version",
"The breakout board firmware major version is v"
"The PCIe Host firmware major version is v"
+ std::to_string (majorVersion) + ", but this plugin is only compatible with v"
+ std::to_string (RequiredMajorVersion) + ". To use this plugin, upgrade the firmware"
+ " to a version that supports the breakout board v" + std::to_string (majorVersion));
+ std::to_string (RequiredMajorVersion) + ". To use this plugin, modify the firmware"
+ " to version v" + std::to_string (majorVersion));
return false;
}
}
Expand Down