Fixed Bug with Mutliline-Inputs
This commit is contained in:
parent
967d47c2bb
commit
3d87c9124b
1 changed files with 57 additions and 56 deletions
|
@ -160,18 +160,21 @@ function getLastHeard(document, event) {
|
|||
// 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: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() {
|
||||
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 = [],
|
||||
timestamp = getTimestamp(event.data),
|
||||
mode = getMode(event.data),
|
||||
callsign = getCallsign(event.data),
|
||||
target = getTarget(event.data),
|
||||
source = getSource(event.data),
|
||||
duration = getDuration(event.data),
|
||||
loss = getLoss(event.data),
|
||||
ber = getBER(event.data),
|
||||
addToQSO = getAddToQSO(event.data);
|
||||
timestamp = getTimestamp(line),
|
||||
mode = getMode(line),
|
||||
callsign = getCallsign(line),
|
||||
target = getTarget(line),
|
||||
source = getSource(line),
|
||||
duration = getDuration(line),
|
||||
loss = getLoss(line),
|
||||
ber = getBER(line),
|
||||
addToQSO = getAddToQSO(line);
|
||||
if (mode == "POCSAG") {
|
||||
callsign = "POCSAG";
|
||||
target = "";
|
||||
|
@ -214,8 +217,9 @@ function getLastHeard(document, event) {
|
|||
addToQSO
|
||||
] ).draw();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getLocalHeard(document, event) {
|
||||
|
@ -242,8 +246,6 @@ function getLocalHeard(document, event) {
|
|||
|
||||
function getDapnetMessages(document, event) {
|
||||
lines = event.data.split("\n");
|
||||
|
||||
//alert(line.indexOf("Sending") > 0);
|
||||
$(document).ready(function() {
|
||||
for (i = 0; i < lines.length; i++) {
|
||||
var line = lines[i];
|
||||
|
@ -257,5 +259,4 @@ function getDapnetMessages(document, event) {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue