From befa88b27b616427c632d1e688e2e6a76e81ac9f Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Wed, 24 Apr 2024 20:53:52 +0200 Subject: [PATCH] Fix connection for patch release versions (#3908) --- src/js/serial_backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/serial_backend.js b/src/js/serial_backend.js index d5eb0e94b9..443d94e6a1 100644 --- a/src/js/serial_backend.js +++ b/src/js/serial_backend.js @@ -494,7 +494,7 @@ function checkReportProblems() { let problems = []; let abort = false; - if (semver.gt(FC.CONFIG.apiVersion, CONFIGURATOR.API_VERSION_MAX_SUPPORTED)) { + if (semver.minor(FC.CONFIG.apiVersion) > semver.minor(CONFIGURATOR.API_VERSION_MAX_SUPPORTED)) { const problemName = 'API_VERSION_MAX_SUPPORTED'; problems.push({ name: problemName, description: i18n.getMessage(`reportProblemsDialog${problemName}`, [CONFIGURATOR.latestVersion, CONFIGURATOR.latestVersionReleaseUrl, CONFIGURATOR.getDisplayVersion(), FC.CONFIG.flightControllerVersion])});