[CodeFactor] Apply fixes to commit 67e7f1b

This commit is contained in:
codefactor-io 2024-04-30 08:49:33 +00:00
parent 67e7f1b71a
commit 2a0e135e1f
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
2 changed files with 12 additions and 15 deletions

View file

@ -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>
@ -105,19 +105,16 @@ function set_radio_parameter_auto_tuner() {
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input <input
class="form-check-input" class="form-check-input"
type="checkbox" type="checkbox"
role="switch" role="switch"
id="flexSwitchTuner" id="flexSwitchTuner"
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>

View file

@ -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"];