Skip to content

Commit 0540df6

Browse files
authored
Merge pull request #4 from FoamyGuy/master
update the temperature formula
2 parents e3dc6a9 + 6964303 commit 0540df6

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)