From: Urban Wallasch Date: Wed, 21 Aug 2019 20:21:10 +0000 (+0200) Subject: * Reset saved values in dash.html when connection fails to improve (visual) recovery... X-Git-Tag: v0.1.0~10 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=c514f6cee6d93fd0c2f419ddeb60d5988a06ebcb;p=ets2_tele.git * Reset saved values in dash.html when connection fails to improve (visual) recovery upon reconnect. --- diff --git a/dash.html b/dash.html index 8e17d3a..ec611dd 100644 --- a/dash.html +++ b/dash.html @@ -517,6 +517,12 @@ function update_cb() { } else if (this.readyState == 4) { disableNoSleep(); + // Reset saved values: + last_active = tnow(); + last_fuel = -1; + last_odometer = -1; + last_deltime = -1; + last_tele = null; // Show error status: pausebar.style.display = 'none'; errbar.style.display = 'block';