mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
20 lines
565 B
TypeScript
20 lines
565 B
TypeScript
|
// pinia store setup
|
||
|
import { setActivePinia } from "pinia";
|
||
|
import pinia from "../store/index";
|
||
|
setActivePinia(pinia);
|
||
|
|
||
|
import { settingsStore as settings, onChange } from "../store/settingsStore.js";
|
||
|
|
||
|
import { useStateStore } from "../store/stateStore";
|
||
|
const stateStore = useStateStore(pinia);
|
||
|
|
||
|
import {
|
||
|
getRadioStatus,
|
||
|
} from "./api";
|
||
|
|
||
|
export async function processRadioStatus(){
|
||
|
let result = await getRadioStatus()
|
||
|
stateStore.mode = result.radio_mode
|
||
|
stateStore.frequency = result.radio_frequency
|
||
|
stateStore.rf_level = result.radio_rf_level
|
||
|
}
|