mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Fix "Tune" on GUI
This commit is contained in:
parent
fec578b1d7
commit
2f1132cec5
2 changed files with 8 additions and 6 deletions
|
@ -10,6 +10,8 @@ const chat = useChatStore(pinia);
|
|||
|
||||
import { settingsStore as settings } from "../store/settingsStore.js";
|
||||
|
||||
import { sendModemTestFrame } from "../js/api";
|
||||
|
||||
import {
|
||||
deleteChatByCallsign,
|
||||
getNewMessagesByDXCallsign,
|
||||
|
@ -17,10 +19,6 @@ import {
|
|||
|
||||
import main_startup_check from "./main_startup_check.vue";
|
||||
|
||||
function tuneAudio() {
|
||||
sendTestFrame();
|
||||
}
|
||||
|
||||
function set_tx_audio_level() {
|
||||
saveSettingsToFile();
|
||||
setTxAudioLevel(settings.tx_audio_level);
|
||||
|
@ -932,7 +930,7 @@ const transmissionSpeedChartDataMessageInfo = computed(() => ({
|
|||
<button
|
||||
type="button"
|
||||
class="btn btn-sm btn-outline-secondary"
|
||||
@click="tuneAudio"
|
||||
@click="sendModemTestFrame()"
|
||||
>
|
||||
Tune
|
||||
</button>
|
||||
|
@ -1193,7 +1191,7 @@ const transmissionSpeedChartDataMessageInfo = computed(() => ({
|
|||
<button
|
||||
type="button"
|
||||
id="sendTestFrame"
|
||||
@click="sendTestFrame()"
|
||||
@click="sendModemTestFrame()"
|
||||
class="btn btn-danger"
|
||||
>
|
||||
Transmit
|
||||
|
|
|
@ -68,6 +68,10 @@ export function sendModemPing(dxcall) {
|
|||
return apiPost("/modem/ping_ping", { dxcall: dxcall });
|
||||
}
|
||||
|
||||
export function sendModemTestFrame() {
|
||||
return apiPost("/modem/send_test_frame");
|
||||
}
|
||||
|
||||
export function startModem() {
|
||||
return apiPost("/modem/start");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue