File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def readCalibrationData(self):
106
106
self ._mpl115a2_b2 = self ._mpl115a2_b2 << 8 | self .i2c .readU8 (self .__MPL115A2_REGISTER_B2_COEFF_LSB ) # INT16
107
107
self ._mpl115a2_c12 = self .i2c .readS8 (self .__MPL115A2_REGISTER_C12_COEFF_MSB ) # INT16
108
108
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
110
110
111
111
print (self ._mpl115a2_a0 )
112
112
self ._mpl115a2_a0 /= 8.0
@@ -125,7 +125,7 @@ def showCalibrationData(self):
125
125
print (self ._mpl115a2_a0 )
126
126
print "DBG: B1 = %f" % (self ._mpl115a2_b1 )
127
127
print "DBG: B2 = %f" % (self ._mpl115a2_b2 )
128
- print "DBG: C12 = %f " % (self ._mpl115a2_c12 )
128
+ print "DBG: C12 = %.20f " % (self ._mpl115a2_c12 )
129
129
130
130
def readRawTemp (self ):
131
131
"Reads the raw (uncompensated) temperature from the sensor"
You can’t perform that action at this time.
0 commit comments