Fixed bug on thermal sensor's reading

This commit is contained in:
dbroqua 2021-02-12 16:33:40 +01:00
parent 9a997f5bf3
commit 8a5f330e20

View File

@ -66,7 +66,8 @@ class Sensors:
# Convert volt to celcius value
def convertToCelcius(self, value):
return ((3300.0/1024.0) - 100.0) / 10.0 - 40.0
value /= 2
return (value * (3300.0/1024.0) - 100.0) / 10.0 - 40.0
def convertToPrintableValue(self, value):
if (self.getChannelType() == 'voltage'):