Skip to content

Commit 876786c

Browse files
authored
Fix: Update/remove usage of the "4.6" version string within Virtual Mode labels (#4613)
* Refactor: Update virtual mode version string to 2025.12.* for MSP 1.47.0 * Refactor: Remove unused version string generator function * Refactor: Update virtual mode FC version and add missing identifier
1 parent 8a17799 commit 876786c

File tree

3 files changed

+3
-32
lines changed

3 files changed

+3
-32
lines changed

src/components/port-picker/FirmwareVirtualOption.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default defineComponent({
3737
};
3838
3939
const firmwareVersions = ref([
40-
{ value: "1.47.0", label: "MSP: 1.47 | Firmware: 4.6.*" },
40+
{ value: "1.47.0", label: "MSP: 1.47 | Firmware: 2025.12.*" },
4141
{ value: "1.46.0", label: "MSP: 1.46 | Firmware: 4.5.*" },
4242
{ value: "1.45.0", label: "MSP: 1.45 | Firmware: 4.4.*" },
4343
{ value: "1.44.0", label: "MSP: 1.44 | Firmware: 4.3.*" },

src/js/VirtualFC.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const VirtualFC = {
1515
virtualFC.resetState();
1616
virtualFC.CONFIG.deviceIdentifier = 0;
1717

18-
virtualFC.CONFIG.flightControllerVersion = "4.6.0";
18+
virtualFC.CONFIG.flightControllerVersion = "2025.12.0";
19+
virtualFC.CONFIG.flightControllerIdentifier = "BTFL";
1920
virtualFC.CONFIG.apiVersion = CONFIGURATOR.virtualApiVersion;
2021

2122
virtualFC.CONFIG.cpuTemp = 48;

src/js/utils/common.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import semver from "semver";
21
import { mixerList } from "../model";
3-
import CONFIGURATOR from "../data_storage";
42
import $ from "jquery";
53

64
export function millitime() {
@@ -33,34 +31,6 @@ export function isInt(n) {
3331
return n % 1 === 0;
3432
}
3533

36-
const majorFirmwareVersions = {
37-
1.47: "4.6.*",
38-
1.46: "4.5.*",
39-
1.45: "4.4.*",
40-
1.44: "4.3.*",
41-
};
42-
43-
export function generateVirtualApiVersions() {
44-
const firmwareVersionDropdown = document.getElementById("firmware-version-dropdown");
45-
const max = semver.minor(CONFIGURATOR.API_VERSION_MAX_SUPPORTED);
46-
const min = semver.minor(CONFIGURATOR.API_VERSION_ACCEPTED);
47-
48-
for (let i = max; i >= min; i--) {
49-
const option = document.createElement("option");
50-
const verNum = `1.${i}`;
51-
option.value = `${verNum}.0`;
52-
option.text = `MSP: ${verNum} `;
53-
54-
if (majorFirmwareVersions.hasOwnProperty(verNum)) {
55-
option.text += ` | Firmware: ${majorFirmwareVersions[verNum]}`;
56-
} else if (i === max) {
57-
option.text += ` | Latest Firmware`;
58-
}
59-
60-
firmwareVersionDropdown.appendChild(option);
61-
}
62-
}
63-
6434
export function getMixerImageSrc(mixerIndex, reverseMotorDir) {
6535
const reverse = reverseMotorDir ? "_reversed" : "";
6636

0 commit comments

Comments
 (0)