Skip to content

Commit 8da6cda

Browse files
committed
Check for firmware version 2.x of the breakout board
- Update liboni to 4.3.13
1 parent 5907dee commit 8da6cda

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Source/OnixSource.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ bool OnixSource::checkHubFirmwareCompatibility(std::shared_ptr<Onix1> context, d
233233
{
234234
if (hubId == ONIX_HUB_FMCHOST) // NB: Breakout Board
235235
{
236-
static constexpr int RequiredMajorVersion = 1;
236+
static constexpr int RequiredMajorVersion = 2;
237237
uint32_t firmwareVersion = 0;
238238
if (!getHubFirmwareVersion(context, hubIndex, &firmwareVersion))
239239
{
@@ -247,7 +247,11 @@ bool OnixSource::checkHubFirmwareCompatibility(std::shared_ptr<Onix1> context, d
247247

248248
if (majorVersion != RequiredMajorVersion)
249249
{
250-
Onix1::showWarningMessageBoxAsync("Invalid Firmware Version", "The breakout board 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 to a version that supports the breakout board v" + std::to_string(majorVersion));
250+
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));
251255
return false;
252256
}
253257
}

libONI/win64/liboni.dll

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

libONI/win64/riffa.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)