|
|
@@ -113,7 +113,6 @@ function restartGnssService() {
|
|
|
|
|
|
let gnssStatusTimer = null;
|
|
|
function getGnssStatus() {
|
|
|
- console.log("getGnssStatus");
|
|
|
fetch("/api/gnss/status")
|
|
|
.then(async r => {
|
|
|
if (!r.ok) {
|
|
|
@@ -134,6 +133,8 @@ function getGnssStatus() {
|
|
|
document.getElementById("var2").textContent = "--";
|
|
|
document.getElementById("var3").textContent = "--";
|
|
|
});
|
|
|
+
|
|
|
+ getGnssLogLevel();
|
|
|
}
|
|
|
|
|
|
function startGnssStatusRefresh() {
|
|
|
@@ -145,7 +146,7 @@ function startGnssStatusRefresh() {
|
|
|
|
|
|
gnssStatusTimer = setInterval(() => {
|
|
|
getGnssStatus();
|
|
|
- }, 5000);
|
|
|
+ }, 3000);
|
|
|
}
|
|
|
|
|
|
function stopGnssStatusRefresh() {
|
|
|
@@ -157,7 +158,6 @@ function stopGnssStatusRefresh() {
|
|
|
|
|
|
function initPage4() {
|
|
|
startGnssStatusRefresh()
|
|
|
- getGnssLogLevel();
|
|
|
connectLog("yfkj-gnss.service", "text1");
|
|
|
}
|
|
|
|