Merge pull request #74 from phl0/dev

Handle log lines for lost RF transmissions correctly
This commit is contained in:
Florian (DF2ET) 2017-01-10 09:58:28 +01:00 committed by GitHub
commit cef1f02eff

View file

@ -240,7 +240,7 @@ function getHeardList($logLines, $onlyLast) {
continue;
}
if(strpos($logLine,"end of") || strpos($logLine,"watchdog has expired") || strpos($logLine,"ended RF data") || strpos($logLine,"ended network") || strpos($logLine,"RF transmission lost")) {
if(strpos($logLine,"end of") || strpos($logLine,"watchdog has expired") || strpos($logLine,"ended RF data") || strpos($logLine,"ended network") || strpos($logLine,"transmission lost")) {
$lineTokens = explode(", ",$logLine);
if (array_key_exists(2,$lineTokens)) {
$duration = strtok($lineTokens[2], " ");