File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 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 ];
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments