Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
kmalinich committed Aug 23, 2021
1 parent 5245ae0 commit fb31ce9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
11 changes: 2 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"worker": false
},
"extends": [
"eslint:recommended",
"esnext"
"eslint:recommended"
],
"globals": {
"ABG": false,
Expand Down Expand Up @@ -166,8 +165,7 @@
"plugins": [
"import",
"node",
"promise",
"standard"
"promise"
],
"rules": {
"accessor-pairs": "error",
Expand Down Expand Up @@ -555,11 +553,6 @@
}
}
],
"standard/computed-property-even-spacing": [
"error",
"even"
],
"standard/no-callback-literal": "error",
"symbol-description": "error",
"template-curly-spacing": [
"error",
Expand Down
2 changes: 1 addition & 1 deletion helpers
Submodule helpers updated 1 files
+1 −7 .eslintrc
4 changes: 2 additions & 2 deletions lib/bus-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function parse_canbus_kcd(data) {
case 'engine.running' :
case 'engine.smg_present' : update_quiet = false; break;

case 'vehicle.speed.pulses' : update_quiet = true; break;
case 'vehicle.speed.pulses' : update_quiet = true; break;
}

// Selectively transform data value depending on data.topic
Expand All @@ -164,7 +164,7 @@ function parse_canbus_kcd(data) {
case 'engine.torque.loss' :
case 'engine.torque.output' : data.msg = num.round2(data.msg, 1); break;

case 'vehicle.speed.pulses' : data.msg = num.round2((data.msg / 16), 3); break;
case 'vehicle.speed.pulses' : data.msg = num.round2((data.msg / 16), 3); break;
}

// console.dir({ topic : data.topic, value : data.msg, update_quiet });
Expand Down
2 changes: 1 addition & 1 deletion share
Submodule share updated 1 files
+2 −9 .eslintrc.json

0 comments on commit fb31ce9

Please sign in to comment.