We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669b01e commit cfd56fbCopy full SHA for cfd56fb
bmp180.py
@@ -150,9 +150,9 @@ def pressure(self):
150
next(self.gauge)
151
self.temperature # Populate self.B5_raw
152
try:
153
- MSB = unp('<h', self.MSB_raw)[0]
154
- LSB = unp('<h', self.LSB_raw)[0]
155
- XLSB = unp('<h', self.XLSB_raw)[0]
+ MSB = unp('B', self.MSB_raw)[0]
+ LSB = unp('B', self.LSB_raw)[0]
+ XLSB = unp('B', self.XLSB_raw)[0]
156
except:
157
return 0.0
158
UP = ((MSB << 16)+(LSB << 8)+XLSB) >> (8-self.oversample_setting)
0 commit comments