Fix "Tune" on GUI

This commit is contained in:
Pedro 2023-11-18 19:06:29 +01:00
parent fec578b1d7
commit 2f1132cec5
2 changed files with 8 additions and 6 deletions

View file

@ -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

View file

@ -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");
}