Skip to content

Commit 1f4a088

Browse files
committed
Changes to calculations
1 parent 2c09b66 commit 1f4a088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_MPL115A2/Adafruit_MPL115A2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def readCalibrationData(self):
106106
self._mpl115a2_b2 = self._mpl115a2_b2 << 8 | self.i2c.readU8(self.__MPL115A2_REGISTER_B2_COEFF_LSB) # INT16
107107
self._mpl115a2_c12 = self.i2c.readS8(self.__MPL115A2_REGISTER_C12_COEFF_MSB) # INT16
108108
self._mpl115a2_c12 = self._mpl115a2_c12 << 8 | self.i2c.readU8(self.__MPL115A2_REGISTER_C12_COEFF_LSB) # INT16
109-
#self._mpl115a2_c12 = self._mpl115a2_c12 >> 2
109+
self._mpl115a2_c12 = self._mpl115a2_c12 >> 2
110110

111111
print(self._mpl115a2_a0)
112112
self._mpl115a2_a0 /= 8.0

0 commit comments

Comments
 (0)