diff --git a/BH1750.cpp b/BH1750.cpp index ac21577..e7a2f30 100644 --- a/BH1750.cpp +++ b/BH1750.cpp @@ -120,9 +120,6 @@ uint16_t BH1750::readLightLevel(void) { // Measurment result will be stored here uint16_t level; - // Start transmission to sensor - Wire.beginTransmission(BH1750_I2CADDR); - // Read two bytes from sensor Wire.requestFrom(BH1750_I2CADDR, 2); @@ -131,9 +128,6 @@ uint16_t BH1750::readLightLevel(void) { level <<= 8; level |= __wire_read(); - // Say goodbye! - Wire.endTransmission(); - // Send raw value if debug enabled #ifdef BH1750_DEBUG Serial.print(F("[BH1750] Raw value: "));