reworked reflector-detection on TS2, should now also work on DMRplus
This commit is contained in:
parent
1e2ded406a
commit
16d84575c3
1 changed files with 11 additions and 0 deletions
|
@ -461,6 +461,17 @@ function getActualReflector($logLines, $mode) {
|
||||||
return "Reflector ".$from;
|
return "Reflector ".$from;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$source = "RF";
|
||||||
|
if (strpos($logLine,"network") > 0 ) {
|
||||||
|
$source = "Net";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $source == "RF") {
|
||||||
|
$to = substr($logLine, strpos($logLine, "to") + 3);
|
||||||
|
if (strlen($to) == 5 && startsWith($to, "4")) {
|
||||||
|
return "Reflector ".$to;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "Reflector not linked";
|
return "Reflector not linked";
|
||||||
|
|
Loading…
Reference in a new issue