Skip to content

Commit

Permalink
3.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
NyboTV committed Jul 2, 2023
1 parent 60f2840 commit a86fde9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tp_ets2_plugin",
"version": "3.2.8",
"version": "3.2.9",
"description": "Euro Truck Simulator 2 Plugin for TouchPortal",
"main": "src/bin/plugin.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/bin/config/cfg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.2.8",
"version": "3.2.9",
"refreshInterval": 500,
"debug": false,
"firstInstall": false,
Expand Down
4 changes: 3 additions & 1 deletion src/bin/modules/states/truck.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,9 @@ const truckStates = async (TPClient, telemetry_path, logIt, timeout, path, cfg_p
SpeedOld = Speed

if(unit === "miles") {
Speed = Math.floor(Speed / 1.609344)
Speed = Math.round(Speed / 1.609344)
} else {
Speed = Math.round(Speed)
}

var data = {
Expand Down
16 changes: 8 additions & 8 deletions src/bin/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,14 @@ if(Testing) {

//Checks for TP exe
setInterval(() => {

isRunning(`TouchPortalServices.exe`, async (status) => {
if(status === false) {
logIt("MAIN", "ERROR", "TouchPortal is not Running anymore.")
exit()
}
})

if(system_path.basename(process.cwd()) === "ETS2_Dashboard") {
isRunning(`TouchPortalServices.exe`, async (status) => {
if(status === false) {
logIt("MAIN", "ERROR", "TouchPortal is not Running anymore.")
exit()
}
})
}
}, 200);

main(path, cfg_path, telemetry_path)
Expand Down

0 comments on commit a86fde9

Please sign in to comment.