also for getDMRNetwork2()
This commit is contained in:
parent
99687f6776
commit
50c1550393
1 changed files with 8 additions and 4 deletions
|
@ -57,10 +57,14 @@ function getDMRNetwork() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDMRNetwork2() {
|
function getDMRNetwork2() {
|
||||||
$fp = fopen('../config/DMRNetwork.txt', 'r');
|
if (file_exists('../config/DMRNetwork.txt')) {
|
||||||
$network = fread($fp, filesize("../config/DMRNetwork.txt"));
|
$fp = fopen('../config/DMRNetwork.txt', 'r');
|
||||||
fclose($fp);
|
$network = fread($fp, filesize("../config/DMRNetwork.txt"));
|
||||||
return $network;
|
fclose($fp);
|
||||||
|
return $network;
|
||||||
|
} else {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDMRMasterState() {
|
function getDMRMasterState() {
|
||||||
|
|
Loading…
Reference in a new issue