mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes to commit 442a041
This commit is contained in:
parent
442a041952
commit
dab78fe190
|
@ -70,11 +70,11 @@ export function sendModemPing(dxcall) {
|
|||
|
||||
export function sendModemARQRaw(mycall, dxcall, data, uuid) {
|
||||
return apiPost("/modem/send_arq_raw", {
|
||||
mycallsign: mycall,
|
||||
dxcallsign: dxcall,
|
||||
data: data,
|
||||
uuid: uuid
|
||||
});
|
||||
mycallsign: mycall,
|
||||
dxcallsign: dxcall,
|
||||
data: data,
|
||||
uuid: uuid,
|
||||
});
|
||||
}
|
||||
|
||||
export function sendModemTestFrame() {
|
||||
|
|
|
@ -24,7 +24,6 @@ import { sendModemARQRaw } from "../js/api.js";
|
|||
|
||||
const split_char = "0;1;";
|
||||
|
||||
|
||||
// define default message object
|
||||
interface Attachment {
|
||||
content_type: string;
|
||||
|
@ -1091,7 +1090,6 @@ export function sendMessage(obj) {
|
|||
let filetype = obj._attachments[filename].content_type;
|
||||
let file = obj._attachments[filename].data;
|
||||
|
||||
|
||||
let data_with_attachment =
|
||||
obj.timestamp +
|
||||
split_char +
|
||||
|
@ -1115,7 +1113,7 @@ export function sendMessage(obj) {
|
|||
data_with_attachment,
|
||||
);
|
||||
|
||||
let mycallsign = settings.remote.STATION.mycall + '-' + settings.remote.STATION.myssid;
|
||||
sendModemARQRaw(mycallsign, dxcallsign, data, uuid)
|
||||
|
||||
}
|
||||
let mycallsign =
|
||||
settings.remote.STATION.mycall + "-" + settings.remote.STATION.myssid;
|
||||
sendModemARQRaw(mycallsign, dxcallsign, data, uuid);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue