[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io 2023-11-19 04:08:43 +00:00
parent 36e71f44f7
commit 8792d3b0f2
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
2 changed files with 15 additions and 15 deletions

View file

@ -11,7 +11,7 @@ function getOverallHealth() {
let health = 0;
if (state.modem_connection !== "connected") health += 5;
if (!state.is_modem_running) health += 3;
if ( state.radio_status === false) health += 2;
if (state.radio_status === false) health += 2;
if (process.env.FDUpdateAvail === "1") health += 1;
return health;
}

View file

@ -50,7 +50,7 @@ function getRigControlStuff() {
return true;
case "rigctld":
case "tci":
return state.radio_status
return state.radio_status;
default:
console.error(
"Unknown radio control mode " + settings.remote.RADIO.control,
@ -348,20 +348,20 @@ function testHamlib() {
>
<select
class="form-select form-select-sm"
aria-label=".form-select-sm"
id="hamlib_deviceport"
style="width: 7rem"
@change="onChange"
v-model="settings.remote.RADIO.serial_port"
>
<option
v-for="option in serialDeviceOptions()"
v-bind:value="option.port"
class="form-select form-select-sm"
aria-label=".form-select-sm"
id="hamlib_deviceport"
style="width: 7rem"
@change="onChange"
v-model="settings.remote.RADIO.serial_port"
>
{{ option.port }}
</option>
</select>
<option
v-for="option in serialDeviceOptions()"
v-bind:value="option.port"
>
{{ option.port }}
</option>
</select>
</div>
</div>
<div