Skip to content

Commit

Permalink
fix vtx settings update
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Jul 23, 2022
1 parent dbff3e5 commit b6821d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/store/serial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const useSerialStore = defineStore("serial", {
await perf.fetch_perf_counters();
}
if (router.currentRoute.value.fullPath == "/setup") {
await vtx.fetch_vtx_settings();
await vtx.update_vtx_settings();
}
}
},
Expand Down Expand Up @@ -158,7 +158,7 @@ export const useSerialStore = defineStore("serial", {
default_profile.fetch_default_profile();
root.fetch_pid_rate_presets();
profile.fetch_profile();
vtx.fetch_vtx_settings();
vtx.update_vtx_settings();

startInterval((c) => this.poll_serial(c));

Expand Down
3 changes: 0 additions & 3 deletions src/store/vtx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ export const useVTXStore = defineStore("vtx", {
},
}),
actions: {
fetch_vtx_settings() {
return serial.get(QuicVal.VtxSettings).then((v) => (this.settings = v));
},
apply_vtx_settings(vtx_settings) {
const root = useRootStore();

Expand Down

0 comments on commit b6821d5

Please sign in to comment.