Skip to content

Commit

Permalink
Merge pull request #66 from schaeferpm/patch-1
Browse files Browse the repository at this point in the history
Update BH1750.cpp
  • Loading branch information
claws authored May 23, 2020
2 parents 831c081 + 179d907 commit 6b3db32
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 6b3db32

Please sign in to comment.