From ff71f138a65ec4f8ef2597f10fac444568fdb1c1 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Fri, 19 Apr 2024 00:58:35 +0200 Subject: [PATCH] Fixup semver --- src/js/msp/MSPHelper.js | 4 ++-- src/js/serial_backend.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/msp/MSPHelper.js b/src/js/msp/MSPHelper.js index 44a16297a5b..d0594faf0bf 100644 --- a/src/js/msp/MSPHelper.js +++ b/src/js/msp/MSPHelper.js @@ -8,7 +8,7 @@ import semver from 'semver'; import vtxDeviceStatusFactory from "../utils/VtxDeviceStatus/VtxDeviceStatusFactory"; import MSP from "../msp"; import MSPCodes from "./MSPCodes"; -import { API_VERSION_1_42, API_VERSION_1_43, API_VERSION_1_44, API_VERSION_1_45, API_VERSION_1_46 } from '../data_storage'; +import { API_VERSION_1_42, API_VERSION_1_43, API_VERSION_1_44, API_VERSION_1_45, API_VERSION_1_46, API_VERSION_1_47 } from '../data_storage'; import EscProtocols from "../utils/EscProtocols"; import huffmanDecodeBuf from "../huffman"; import { defaultHuffmanTree, defaultHuffmanLenIndex } from "../default_huffman_tree"; @@ -795,7 +795,7 @@ MspHelper.prototype.process_data = function(dataHandler) { FC.CONFIG.gitRevision = String.fromCharCode.apply(null, buff); console.log("Fw git rev:", FC.CONFIG.gitRevision); - if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46)) { + if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) { let option = data.readU16(); while (option) { FC.CONFIG.buildOptions.push(option); diff --git a/src/js/serial_backend.js b/src/js/serial_backend.js index f9711ceb672..b8d17283daf 100644 --- a/src/js/serial_backend.js +++ b/src/js/serial_backend.js @@ -353,7 +353,7 @@ function onOpen(openInfo) { gui_log(i18n.getMessage('buildInfoReceived', [FC.CONFIG.buildInfo])); // retrieve build options from the flight controller - if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46)) { + if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) { FC.processBuildOptions(); }