mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes to commit 67e7f1b
This commit is contained in:
parent
67e7f1b71a
commit
2a0e135e1f
2 changed files with 12 additions and 15 deletions
|
@ -25,7 +25,7 @@ function set_radio_parameter_rflevel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_radio_parameter_auto_tuner() {
|
function set_radio_parameter_auto_tuner() {
|
||||||
console.log(state.tuner)
|
console.log(state.tuner);
|
||||||
setRadioParametersTuner(state.tuner);
|
setRadioParametersTuner(state.tuner);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -113,11 +113,8 @@ function set_radio_parameter_auto_tuner() {
|
||||||
v-model="state.tuner"
|
v-model="state.tuner"
|
||||||
@change="set_radio_parameter_auto_tuner()"
|
@change="set_radio_parameter_auto_tuner()"
|
||||||
/>
|
/>
|
||||||
<label class="form-check-label" for="flexSwitchTuner"
|
<label class="form-check-label" for="flexSwitchTuner">Tuner</label>
|
||||||
>Tuner</label
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -84,7 +84,7 @@ export function stateDispatcher(data) {
|
||||||
stateStore.s_meter_strength_percent = Math.round(
|
stateStore.s_meter_strength_percent = Math.round(
|
||||||
Math.pow(10, data["s_meter_strength"] / 20) * 100,
|
Math.pow(10, data["s_meter_strength"] / 20) * 100,
|
||||||
);
|
);
|
||||||
console.log(data)
|
console.log(data);
|
||||||
stateStore.radio_status = data["radio_status"];
|
stateStore.radio_status = data["radio_status"];
|
||||||
stateStore.frequency = data["radio_frequency"];
|
stateStore.frequency = data["radio_frequency"];
|
||||||
stateStore.mode = data["radio_mode"];
|
stateStore.mode = data["radio_mode"];
|
||||||
|
|
Loading…
Reference in a new issue