Skip to content

Commit 75dfdcd

Browse files
committed
vtx: force manual selection
1 parent ac6e06b commit 75dfdcd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/panel/VTX.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
v-model.number="vtx.settings.protocol"
2020
:options="vtxProtocolOptions"
2121
></input-select>
22+
<p v-if="vtx.settings.protocol == 0" class="help is-warning">
23+
Please select a VTX protocol
24+
</p>
2225
</div>
2326
</div>
2427
</div>
@@ -212,7 +215,7 @@ export default defineComponent({
212215
},
213216
vtxProtocolOptions() {
214217
const data = [
215-
{ value: 0, text: "AUTO" },
218+
//{ value: 0, text: "AUTO" }, we dont do this anymore
216219
{ value: 1, text: "TRAMP" },
217220
{ value: 2, text: "SMARTAUDIO" },
218221
];

src/store/vtx.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ export const useVTXStore = defineStore("vtx", {
4242
update_vtx_settings(force = false) {
4343
if (this.settings.detected == 0 || force) {
4444
return serial.get(QuicVal.VtxSettings).then((settings) => {
45-
const protocol =
46-
settings.detected == 0 ? this.settings.protocol : settings.protocol;
45+
const protocol = settings.protocol || this.settings.protocol;
4746
this.settings = {
4847
...settings,
4948
protocol,

0 commit comments

Comments
 (0)