Bugfixing
This commit is contained in:
parent
4514dbec16
commit
cb27cfbbd8
2 changed files with 41 additions and 20 deletions
Binary file not shown.
|
@ -99,41 +99,62 @@ 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") < 9) {
|
||||
$(document).ready(function() {
|
||||
var rowIndexes = [];
|
||||
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);
|
||||
if (mode == "POCSAG") {
|
||||
callsign = "POCSAG";
|
||||
target = "";
|
||||
source = "";
|
||||
duration = "";
|
||||
loss = "";
|
||||
ber = "";
|
||||
addToQSO = "";
|
||||
}
|
||||
t_lh.rows( function ( idx, data, node ) {
|
||||
if(data[2] === getCallsign(event.data)){
|
||||
if(data[2] === callsign){
|
||||
rowIndexes.push(idx);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
if (rowIndexes[0]) {
|
||||
newData = [
|
||||
getTimestamp(event.data),
|
||||
getMode(event.data),
|
||||
getCallsign(event.data),
|
||||
getTarget(event.data),
|
||||
getSource(event.data),
|
||||
getDuration(event.data),
|
||||
getLoss(event.data),
|
||||
getBER(event.data),
|
||||
getAddToQSO(event.data)
|
||||
timestamp,
|
||||
mode,
|
||||
callsign,
|
||||
target,
|
||||
source,
|
||||
duration,
|
||||
loss,
|
||||
ber,
|
||||
addToQSO
|
||||
]
|
||||
t_lh.row(rowIndexes[0]).data( newData ).draw();
|
||||
} else {
|
||||
t_lh.row.add( [
|
||||
getTimestamp(event.data),
|
||||
getMode(event.data),
|
||||
getCallsign(event.data),
|
||||
getTarget(event.data),
|
||||
getSource(event.data),
|
||||
getDuration(event.data),
|
||||
getLoss(event.data),
|
||||
getBER(event.data),
|
||||
getAddToQSO(event.data)
|
||||
timestamp,
|
||||
mode,
|
||||
callsign,
|
||||
target,
|
||||
source,
|
||||
duration,
|
||||
loss,
|
||||
ber,
|
||||
addToQSO
|
||||
] ).draw();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function getLocalHeard(document, event) {
|
||||
|
|
Loading…
Reference in a new issue