1
0
Fork 0

Fixed Bug with Mutliline-Inputs

main
Kim - DG9VH 4 years ago
parent 967d47c2bb
commit 3d87c9124b

@ -160,18 +160,21 @@ function getLastHeard(document, event) {
// 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 // 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
// M: 2020-11-01 21:33:27.454 YSF, received network data from DG2MAS to DG-ID 0 at DG2MAS // M: 2020-11-01 21:33:27.454 YSF, received network data from DG2MAS to DG-ID 0 at DG2MAS
// M: 2020-11-01 21:33:35.025 YSF, received network end of transmission from DG2MAS to DG-ID 0, 7.7 seconds, 0% packet loss, BER: 0.0% // M: 2020-11-01 21:33:35.025 YSF, received network end of transmission from DG2MAS to DG-ID 0, 7.7 seconds, 0% packet loss, BER: 0.0%
if (event.data.indexOf("Talker Alias") < 0 && event.data.indexOf("Downlink Activate") < 0 && event.data.indexOf("network watchdog") < 0 ) {
$(document).ready(function() { $(document).ready(function() {
lines = event.data.split("\n");
for (i = 0; i < lines.length; i++) {
var line = lines[i];
if (line.indexOf("Talker Alias") < 0 && line.indexOf("Downlink Activate") < 0 && line.indexOf("network watchdog") < 0 && line.indexOf("Preamble CSBK") < 0 && line.indexOf("Data Header") < 0 && line.length > 0) {
var rowIndexes = [], var rowIndexes = [],
timestamp = getTimestamp(event.data), timestamp = getTimestamp(line),
mode = getMode(event.data), mode = getMode(line),
callsign = getCallsign(event.data), callsign = getCallsign(line),
target = getTarget(event.data), target = getTarget(line),
source = getSource(event.data), source = getSource(line),
duration = getDuration(event.data), duration = getDuration(line),
loss = getLoss(event.data), loss = getLoss(line),
ber = getBER(event.data), ber = getBER(line),
addToQSO = getAddToQSO(event.data); addToQSO = getAddToQSO(line);
if (mode == "POCSAG") { if (mode == "POCSAG") {
callsign = "POCSAG"; callsign = "POCSAG";
target = ""; target = "";
@ -214,8 +217,9 @@ function getLastHeard(document, event) {
addToQSO addToQSO
] ).draw(); ] ).draw();
} }
});
} }
}
});
} }
function getLocalHeard(document, event) { function getLocalHeard(document, event) {
@ -242,8 +246,6 @@ function getLocalHeard(document, event) {
function getDapnetMessages(document, event) { function getDapnetMessages(document, event) {
lines = event.data.split("\n"); lines = event.data.split("\n");
//alert(line.indexOf("Sending") > 0);
$(document).ready(function() { $(document).ready(function() {
for (i = 0; i < lines.length; i++) { for (i = 0; i < lines.length; i++) {
var line = lines[i]; var line = lines[i];
@ -257,5 +259,4 @@ function getDapnetMessages(document, event) {
} }
} }
}); });
} }

Loading…
Cancel
Save