Skip to content

Commit

Permalink
Bugfix for fuel pressure
Browse files Browse the repository at this point in the history
wrong factor for fuel pressure used
  • Loading branch information
designer2k2 committed Oct 29, 2021
1 parent 9b1154a commit bca4caa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "https://github.com/designer2k2/EMUcan"
},
"version": "1.0.3",
"version": "1.0.4",
"license": "GPL-3.0-only",
"frameworks": "arduino",
"platforms": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=EMUcan
version=1.0.3
version=1.0.4
author=Stephan M. <[email protected]>
maintainer=Stephan M. <[email protected]>
sentence=ECUMaster EMU CAN Stream Reader Arduino Library
Expand Down
4 changes: 2 additions & 2 deletions src/EMUcan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ bool EMUcan::decodeEmuFrame(struct can_frame *msg) {
emu_data.oilTemperature = msg->data[3];
//4 OILP BAR 0.0625
emu_data.oilPressure = msg->data[4] * 0.0625;
//5 FUELP BAR 0.03125
emu_data.fuelPressure = msg->data[5] * 0.03125;
//5 FUELP BAR 0.0625
emu_data.fuelPressure = msg->data[5] * 0.0625;
//6-7 CLT 16bit Signed 0.016129ms
emu_data.CLT = ((msg->data[7] << 8) + msg->data[6]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/EMUcan.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <mcp2515.h>

#define EMUCAN_LIB_VERSION (F("1.0.3"))
#define EMUCAN_LIB_VERSION (F("1.0.4"))

// Available data
struct emu_data_t {
Expand Down

0 comments on commit bca4caa

Please sign in to comment.