Skip to content

Commit 2c09b66

Browse files
committed
looking at c12
1 parent 5379490 commit 2c09b66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Adafruit_MPL115A2/Adafruit_MPL115A2.py

+2-2
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
@@ -125,7 +125,7 @@ def showCalibrationData(self):
125125
print(self._mpl115a2_a0)
126126
print "DBG: B1 = %f" % (self._mpl115a2_b1)
127127
print "DBG: B2 = %f" % (self._mpl115a2_b2)
128-
print "DBG: C12 = %f" % (self._mpl115a2_c12)
128+
print "DBG: C12 = %.20f" % (self._mpl115a2_c12)
129129

130130
def readRawTemp(self):
131131
"Reads the raw (uncompensated) temperature from the sensor"

0 commit comments

Comments
 (0)