Handle log lines for lost RF transmissions correctly

This commit is contained in:
phl0 2017-01-10 09:45:04 +01:00
parent 558d69dd61
commit cd5412e7f5
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A

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], " ");