Skip to content

Commit

Permalink
Update BH1750.cpp
Browse files Browse the repository at this point in the history
The configure method always pushed the old configuration to the device.
  • Loading branch information
schaeferpm committed May 22, 2020
1 parent 831c081 commit 179d907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BH1750.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ bool BH1750::configure(Mode mode) {

// Send mode to sensor
I2C->beginTransmission(BH1750_I2CADDR);
__wire_write((uint8_t)BH1750_MODE);
__wire_write((uint8_t)mode);
ack = I2C->endTransmission();

// Wait a few moments to wake up
Expand Down

0 comments on commit 179d907

Please sign in to comment.