Skip to content

Commit 6964303

Browse files
committed
update the temperature formula
1 parent e3dc6a9 commit 6964303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_mpu6050.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def reset(self):
205205
def temperature(self):
206206
"""The current temperature in º C"""
207207
raw_temperature = self._raw_temp_data
208-
temp = (raw_temperature + 12412.0) / 340.0
208+
temp = (raw_temperature / 340.0) + 36.53
209209
return temp
210210

211211
@property

0 commit comments

Comments
 (0)