Skip to content

Commit 6b3db32

Browse files
authored
Merge pull request #66 from schaeferpm/patch-1
Update BH1750.cpp
2 parents 831c081 + 179d907 commit 6b3db32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BH1750.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ bool BH1750::configure(Mode mode) {
102102

103103
// Send mode to sensor
104104
I2C->beginTransmission(BH1750_I2CADDR);
105-
__wire_write((uint8_t)BH1750_MODE);
105+
__wire_write((uint8_t)mode);
106106
ack = I2C->endTransmission();
107107

108108
// Wait a few moments to wake up

0 commit comments

Comments
 (0)