projects
/
ets2_tele.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3de3c5
)
* Fixed speed display when driving in reverse.
author
Urban Wallasch
<urban.wallasch@freenet.de>
Sun, 28 Jul 2019 09:23:31 +0000
(11:23 +0200)
committer
Urban Wallasch
<urban.wallasch@freenet.de>
Sun, 28 Jul 2019 09:23:31 +0000
(11:23 +0200)
dash.html
patch
|
blob
|
history
diff --git
a/dash.html
b/dash.html
index 2f961c2820939ac87db0cac2b9a37c4bbfd225d2..73c339f576cc1858d157a00c6bdb9a7cd8f59310 100644
(file)
--- 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 )