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
2 changed files with 9 additions and 11 deletions
|
@ -73,7 +73,7 @@ export function sendModemARQRaw(mycall, dxcall, data, uuid) {
|
||||||
mycallsign: mycall,
|
mycallsign: mycall,
|
||||||
dxcallsign: dxcall,
|
dxcallsign: dxcall,
|
||||||
data: data,
|
data: data,
|
||||||
uuid: uuid
|
uuid: uuid,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@ import { sendModemARQRaw } from "../js/api.js";
|
||||||
|
|
||||||
const split_char = "0;1;";
|
const split_char = "0;1;";
|
||||||
|
|
||||||
|
|
||||||
// define default message object
|
// define default message object
|
||||||
interface Attachment {
|
interface Attachment {
|
||||||
content_type: string;
|
content_type: string;
|
||||||
|
@ -1091,7 +1090,6 @@ export function sendMessage(obj) {
|
||||||
let filetype = obj._attachments[filename].content_type;
|
let filetype = obj._attachments[filename].content_type;
|
||||||
let file = obj._attachments[filename].data;
|
let file = obj._attachments[filename].data;
|
||||||
|
|
||||||
|
|
||||||
let data_with_attachment =
|
let data_with_attachment =
|
||||||
obj.timestamp +
|
obj.timestamp +
|
||||||
split_char +
|
split_char +
|
||||||
|
@ -1115,7 +1113,7 @@ export function sendMessage(obj) {
|
||||||
data_with_attachment,
|
data_with_attachment,
|
||||||
);
|
);
|
||||||
|
|
||||||
let mycallsign = settings.remote.STATION.mycall + '-' + settings.remote.STATION.myssid;
|
let mycallsign =
|
||||||
sendModemARQRaw(mycallsign, dxcallsign, data, uuid)
|
settings.remote.STATION.mycall + "-" + settings.remote.STATION.myssid;
|
||||||
|
sendModemARQRaw(mycallsign, dxcallsign, data, uuid);
|
||||||
}
|
}
|
Loading…
Reference in a new issue