From: Urban Wallasch Date: Sun, 28 Jul 2019 09:23:31 +0000 (+0200) Subject: * Fixed speed display when driving in reverse. X-Git-Tag: v0.1.0~56 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=cf91b228bf064cca1c7fc5863d108d2522d819d2;p=ets2_tele.git * Fixed speed display when driving in reverse. --- diff --git a/dash.html b/dash.html index 2f961c2..73c339f 100644 --- a/dash.html +++ b/dash.html @@ -197,7 +197,7 @@ function loadDoc() { if (this.readyState == 4 && this.status == 200) { var tele = JSON.parse(this.responseText); - speed.innerHTML = Math.round(tele.speed * 3.6); + speed.innerHTML = Math.round( Math.abs(tele.speed * 3.6) ); if ( tele.nav_slimit > 0 && Math.floor(tele.speed) > tele.nav_slimit * 1.075 ) warn( speed, 2 ); else if ( tele.nav_slimit > 0 && Math.floor(tele.speed) > tele.nav_slimit * 1.005 )