Skip to content

Commit

Permalink
Fix TS Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mashintime committed Jan 7, 2024
1 parent 1cfd8ab commit a26d152
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion gui/src/components/grid/grid_active_broadcasts_vert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ var dxcallPing = ref("");
role="switch"
id="flexSwitchBeacon"
v-model="state.beacon_state"
@change="onChange"
@click="startStopBeacon()"
/>
<label class="form-check-label" for="flexSwitchBeacon"
Expand Down
12 changes: 7 additions & 5 deletions gui/src/components/main_active_rig_control.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ setActivePinia(pinia);
import { useStateStore } from "../store/stateStore.js";
const state = useStateStore(pinia);
import { setModemRigMode, setModemRigPowerLvl } from "../js/api";
function updateFrequencyAndApply(frequency) {

Check warning on line 11 in gui/src/components/main_active_rig_control.vue

View check run for this annotation

codefactor.io / CodeFactor

gui/src/components/main_active_rig_control.vue#L11

'frequency' is defined but never used. (no-unused-vars)
state.new_frequency = frequency;
set_frequency(state.new_frequency);
//state.new_frequency = frequency;
//set_frequency(state.new_frequency);
}
function set_hamlib_frequency_manually() {
set_frequency(state.new_frequency);
//set_frequency(state.new_frequency);
}
function set_hamlib_mode() {
set_mode(state.mode);
setModemRigMode(state.mode);
}
function set_hamlib_rf_level() {
set_rf_level(state.rf_level);
setModemRigPowerLvl(state.rf_level);
}
</script>

Expand Down
4 changes: 2 additions & 2 deletions gui/src/components/main_rig_control.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function startStopRigctld() {
break;
case "running":
stopRigctld();
//stopRigctld();
// dirty hack for calling this command twice, otherwise modem won't stop rigctld from time to time
//stopRigctld();
break;
Expand All @@ -44,7 +44,7 @@ function selectRadioControl() {
console.log("default=!==");
settings.remote.RADIO.control = "disabled";
}
saveSettingsToFile();
//saveSettingsToFile();
}
Expand Down

0 comments on commit a26d152

Please sign in to comment.