diff --git a/src/js/msp/MSPHelper.js b/src/js/msp/MSPHelper.js
index 1f5e3f05c2..cc6e51aeed 100644
--- a/src/js/msp/MSPHelper.js
+++ b/src/js/msp/MSPHelper.js
@@ -4,6 +4,7 @@ import { i18n } from "../localization";
import GUI from "../gui";
import FC from "../fc";
import semver from 'semver';
+import vtxDeviceStatusFactory from "../utils/VtxDeviceStatus/VtxDeviceStatusFactory";
// Used for LED_STRIP
const ledDirectionLetters = ['n', 'e', 's', 'w', 'u', 'd']; // in LSB bit order
diff --git a/src/js/tabs/vtx.js b/src/js/tabs/vtx.js
index 6460591af5..0a807a7cfd 100644
--- a/src/js/tabs/vtx.js
+++ b/src/js/tabs/vtx.js
@@ -4,6 +4,7 @@ import GUI from '../gui';
import { tracking } from "../Analytics";
import { mspHelper } from "../msp/MSPHelper";
import FC from '../fc';
+import { VtxDeviceTypes } from '../utils/VtxDeviceStatus/VtxDeviceStatus';
const vtx = {
supported: false,
diff --git a/src/js/utils/VtxDeviceStatus/Rtc6705DeviceStatus.js b/src/js/utils/VtxDeviceStatus/Rtc6705DeviceStatus.js
index 2ae2dd014e..8a5f600196 100644
--- a/src/js/utils/VtxDeviceStatus/Rtc6705DeviceStatus.js
+++ b/src/js/utils/VtxDeviceStatus/Rtc6705DeviceStatus.js
@@ -1,4 +1,5 @@
-'use strict';
+import VtxDeviceStatus, { VtxDeviceTypes } from './VtxDeviceStatus';
+import vtxDeviceStatusFactory from './VtxDeviceStatusFactory';
class VtxDeviceStatusRtc6705 extends VtxDeviceStatus {
constructor(dataView)
@@ -17,3 +18,5 @@ class VtxDeviceStatusRtc6705 extends VtxDeviceStatus {
}
vtxDeviceStatusFactory.registerVtxDeviceStatusClass(VtxDeviceStatusRtc6705);
+
+export default VtxDeviceStatusRtc6705;
diff --git a/src/js/utils/VtxDeviceStatus/SmartAudioDeviceStatus.js b/src/js/utils/VtxDeviceStatus/SmartAudioDeviceStatus.js
index 279bbde7c7..280c9dbfbc 100644
--- a/src/js/utils/VtxDeviceStatus/SmartAudioDeviceStatus.js
+++ b/src/js/utils/VtxDeviceStatus/SmartAudioDeviceStatus.js
@@ -1,4 +1,6 @@
-'use strict';
+import VtxDeviceStatus, { VtxDeviceTypes } from "./VtxDeviceStatus";
+import vtxDeviceStatusFactory from "./VtxDeviceStatusFactory";
+import { i18n } from "../../localization";
class VtxDeviceStatusSmartAudio extends VtxDeviceStatus {
constructor(dataView)
@@ -47,3 +49,5 @@ class VtxDeviceStatusSmartAudio extends VtxDeviceStatus {
}
vtxDeviceStatusFactory.registerVtxDeviceStatusClass(VtxDeviceStatusSmartAudio);
+
+export default VtxDeviceStatusSmartAudio;
diff --git a/src/js/utils/VtxDeviceStatus/TrampDeviceStatus.js b/src/js/utils/VtxDeviceStatus/TrampDeviceStatus.js
index 287eec9ca5..6de2a893ca 100644
--- a/src/js/utils/VtxDeviceStatus/TrampDeviceStatus.js
+++ b/src/js/utils/VtxDeviceStatus/TrampDeviceStatus.js
@@ -1,4 +1,5 @@
-'use strict';
+import VtxDeviceStatus, { VtxDeviceTypes } from './VtxDeviceStatus';
+import vtxDeviceStatusFactory from './VtxDeviceStatusFactory';
class VtxDeviceStatusTramp extends VtxDeviceStatus {
constructor(dataView)
@@ -17,3 +18,5 @@ class VtxDeviceStatusTramp extends VtxDeviceStatus {
}
vtxDeviceStatusFactory.registerVtxDeviceStatusClass(VtxDeviceStatusTramp);
+
+export default VtxDeviceStatusTramp;
diff --git a/src/js/utils/VtxDeviceStatus/VtxDeviceStatus.js b/src/js/utils/VtxDeviceStatus/VtxDeviceStatus.js
index 3002cabaa2..790793fb79 100644
--- a/src/js/utils/VtxDeviceStatus/VtxDeviceStatus.js
+++ b/src/js/utils/VtxDeviceStatus/VtxDeviceStatus.js
@@ -1,6 +1,4 @@
-'use strict';
-
-const VtxDeviceTypes = {
+export const VtxDeviceTypes = {
VTXDEV_UNSUPPORTED: 0, // reserved for MSP
VTXDEV_RTC6705: 1,
// 2 reserved
@@ -78,3 +76,5 @@ class VtxDeviceStatus
return this.constructor.staticDeviceStatusType;
}
}
+
+export default VtxDeviceStatus;
diff --git a/src/js/utils/VtxDeviceStatus/VtxDeviceStatusFactory.js b/src/js/utils/VtxDeviceStatus/VtxDeviceStatusFactory.js
index acad76b079..4a001ceaf9 100644
--- a/src/js/utils/VtxDeviceStatus/VtxDeviceStatusFactory.js
+++ b/src/js/utils/VtxDeviceStatus/VtxDeviceStatusFactory.js
@@ -1,5 +1,3 @@
-'use strict';
-
const vtxDeviceStatusFactory = {
_vtxDeviceStatusClasses: [],
@@ -38,3 +36,5 @@ const vtxDeviceStatusFactory = {
return result;
},
};
+
+export default vtxDeviceStatusFactory;
diff --git a/src/js/utils/VtxDeviceStatus/VtxMspDeviceStatus.js b/src/js/utils/VtxDeviceStatus/VtxMspDeviceStatus.js
index f999103f0f..84fda311c8 100644
--- a/src/js/utils/VtxDeviceStatus/VtxMspDeviceStatus.js
+++ b/src/js/utils/VtxDeviceStatus/VtxMspDeviceStatus.js
@@ -1,4 +1,4 @@
-'use strict';
+import VtxDeviceStatus, { VtxDeviceTypes } from './VtxDeviceStatus';
class VtxDeviceStatusMsp extends VtxDeviceStatus {
constructor(dataView)
@@ -17,3 +17,5 @@ class VtxDeviceStatusMsp extends VtxDeviceStatus {
}
vtxDeviceStatusFactory.registerVtxDeviceStatusClass(VtxDeviceStatusMsp);
+
+export default VtxDeviceStatusMsp;
diff --git a/src/main.html b/src/main.html
index 516623129f..2ce0c2a05f 100644
--- a/src/main.html
+++ b/src/main.html
@@ -80,11 +80,6 @@
-
-
-
-
-