diff --git a/MPU6050.py b/MPU6050.py index feb5fea..ca4b4af 100644 --- a/MPU6050.py +++ b/MPU6050.py @@ -102,7 +102,7 @@ def get_temp(self): # Get the actual temperature using the formule given in the # MPU-6050 Register Map and Descriptions revision 4.2, page 30 - actual_temp = (raw_temp / 340) + 36.53 + actual_temp = (raw_temp / 340.0) + 36.53 # Return the temperature return actual_temp