Skip to content

Commit

Permalink
IMU/Thermometer: read from Si7020's cached temperature register. Ref g…
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Dec 19, 2015
1 parent 0cb01a9 commit 89c6a78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/imu.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ var Drivers = {
REGISTER: {
value: {
HUMIDITY: 0xE5,
TEMPERATURE: 0xE3,
TEMPERATURE: 0xE0,
}
},
initialize: {
Expand Down
2 changes: 1 addition & 1 deletion test/thermometer.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ exports["Thermometer -- SI7020"] = {
// address
test.equal(this.i2cRead.firstCall.args[0], 0x40);
// register
test.equal(this.i2cRead.firstCall.args[1], 0xE3);
test.equal(this.i2cRead.firstCall.args[1], 0xE0);
// byte count
test.equal(this.i2cRead.firstCall.args[2], 2);

Expand Down

0 comments on commit 89c6a78

Please sign in to comment.