mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
36e71f44f7
commit
8792d3b0f2
2 changed files with 15 additions and 15 deletions
|
@ -11,7 +11,7 @@ function getOverallHealth() {
|
||||||
let health = 0;
|
let health = 0;
|
||||||
if (state.modem_connection !== "connected") health += 5;
|
if (state.modem_connection !== "connected") health += 5;
|
||||||
if (!state.is_modem_running) health += 3;
|
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;
|
if (process.env.FDUpdateAvail === "1") health += 1;
|
||||||
return health;
|
return health;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ function getRigControlStuff() {
|
||||||
return true;
|
return true;
|
||||||
case "rigctld":
|
case "rigctld":
|
||||||
case "tci":
|
case "tci":
|
||||||
return state.radio_status
|
return state.radio_status;
|
||||||
default:
|
default:
|
||||||
console.error(
|
console.error(
|
||||||
"Unknown radio control mode " + settings.remote.RADIO.control,
|
"Unknown radio control mode " + settings.remote.RADIO.control,
|
||||||
|
@ -348,20 +348,20 @@ function testHamlib() {
|
||||||
>
|
>
|
||||||
|
|
||||||
<select
|
<select
|
||||||
class="form-select form-select-sm"
|
class="form-select form-select-sm"
|
||||||
aria-label=".form-select-sm"
|
aria-label=".form-select-sm"
|
||||||
id="hamlib_deviceport"
|
id="hamlib_deviceport"
|
||||||
style="width: 7rem"
|
style="width: 7rem"
|
||||||
@change="onChange"
|
@change="onChange"
|
||||||
v-model="settings.remote.RADIO.serial_port"
|
v-model="settings.remote.RADIO.serial_port"
|
||||||
>
|
|
||||||
<option
|
|
||||||
v-for="option in serialDeviceOptions()"
|
|
||||||
v-bind:value="option.port"
|
|
||||||
>
|
>
|
||||||
{{ option.port }}
|
<option
|
||||||
</option>
|
v-for="option in serialDeviceOptions()"
|
||||||
</select>
|
v-bind:value="option.port"
|
||||||
|
>
|
||||||
|
{{ option.port }}
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue