From 4f427eda4e39484db9ddc68e1216750e9b185412 Mon Sep 17 00:00:00 2001 From: Kwimbee <72341571+Kwimbee@users.noreply.github.com> Date: Thu, 14 Dec 2023 11:19:24 +0100 Subject: [PATCH] no return --- iforte/base.js | 10 ++++++---- iforte/discovery.html | 4 ++-- iforte/index.html | 2 +- iforte/logs.html | 2 +- iforte/personality.html | 2 +- iforte/sensors.html | 2 +- t1/discovery.html | 2 +- t1/index.html | 2 +- t1/logs.html | 2 +- t1/personality.html | 2 +- 10 files changed, 16 insertions(+), 14 deletions(-) diff --git a/iforte/base.js b/iforte/base.js index 160fb7d..b8b7911 100644 --- a/iforte/base.js +++ b/iforte/base.js @@ -1,11 +1,13 @@ +// GLOBAL VARIABLES var is_pressure_test_ongoing = false; var rains_value = 0; +var rains_loop_timing = 2000; $(document).ready(function () { initSessionStorage(); populateUIFromSessionStorage(); - loopRainsSimulator(); + loop_rains_simulator(); // Sets the proper fixture name in the header and title var fixturename = "Robin iForte - Simulated"; @@ -79,7 +81,7 @@ function toggleStandbyMode() { populateUIFromSessionStorage(); } -function loopRainsSimulator() { +function loop_rains_simulator() { var rains_tube_age = sessionStorage.getItem("iforte_demo_rains_age"); var rains_lowest = sessionStorage.getItem("iforte_demo_rains_lowest"); @@ -105,8 +107,8 @@ function loopRainsSimulator() { setTimeout(() => { - loopRainsSimulator(); - }, 1000); + loop_rains_simulator(); + }, rains_loop_timing); } function pressureTest() { diff --git a/iforte/discovery.html b/iforte/discovery.html index a3a7269..8a8b904 100644 --- a/iforte/discovery.html +++ b/iforte/discovery.html @@ -26,7 +26,7 @@ -
+

Discovery

@@ -34,7 +34,7 @@
- +
diff --git a/iforte/index.html b/iforte/index.html index 9a69e32..80e20d7 100644 --- a/iforte/index.html +++ b/iforte/index.html @@ -55,7 +55,7 @@
diff --git a/iforte/logs.html b/iforte/logs.html index f416f39..b333b22 100644 --- a/iforte/logs.html +++ b/iforte/logs.html @@ -26,7 +26,7 @@
-
+

Device logs

diff --git a/iforte/personality.html b/iforte/personality.html index f51c683..e028d1c 100644 --- a/iforte/personality.html +++ b/iforte/personality.html @@ -55,7 +55,7 @@

Personality

diff --git a/iforte/sensors.html b/iforte/sensors.html index 75ac17c..332f616 100644 --- a/iforte/sensors.html +++ b/iforte/sensors.html @@ -26,7 +26,7 @@
-
+

RAINS logs

diff --git a/t1/discovery.html b/t1/discovery.html index a933a93..70cccd0 100644 --- a/t1/discovery.html +++ b/t1/discovery.html @@ -30,7 +30,7 @@
-
+

Discovery

diff --git a/t1/index.html b/t1/index.html index 868db21..235e9c7 100644 --- a/t1/index.html +++ b/t1/index.html @@ -23,7 +23,7 @@
-
+

Device status

diff --git a/t1/logs.html b/t1/logs.html index 8b82682..a4152e9 100644 --- a/t1/logs.html +++ b/t1/logs.html @@ -30,7 +30,7 @@
-
+

Device logs

diff --git a/t1/personality.html b/t1/personality.html index b78e244..63df7db 100644 --- a/t1/personality.html +++ b/t1/personality.html @@ -31,7 +31,7 @@
-
+

Personality