Fixed issue with Current Mode
Current Mode was long time not shown correctly but not reported. Now it's working correctly again.
This commit is contained in:
parent
0f44b9a196
commit
b2209d116b
2 changed files with 3 additions and 3 deletions
|
@ -246,7 +246,7 @@ function showMode($mode, $mmdvmconfigs) {
|
|||
function getMMDVMLog() {
|
||||
// Open Logfile and copy loglines into LogLines-Array()
|
||||
$logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log";
|
||||
$logLines = explode("\n", `egrep -h "end|watchdog|lost" $logPath`);
|
||||
$logLines = explode("\n", `egrep -h "from|end|watchdog|lost" $logPath`);
|
||||
return $logLines;
|
||||
}
|
||||
|
||||
|
@ -652,7 +652,7 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) {
|
|||
$timestamp->add(new DateInterval('PT' . $hangtime . 'S'));
|
||||
} else {
|
||||
$source = $listElem[6];
|
||||
if ($source === "Network") {
|
||||
if ($source === "Net") {
|
||||
$hangtime = getConfigItem("General", "NetModeHang", $mmdvmconfigs);
|
||||
} else {
|
||||
$hangtime = getConfigItem("General", "RFModeHang", $mmdvmconfigs);
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
define("VERSION", "20200921-1 (".getGitVersion().")");
|
||||
define("VERSION", "20200921-2 (".getGitVersion().")");
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue