Fixed bug on thermal sensor's reading
This commit is contained in:
parent
9a997f5bf3
commit
8a5f330e20
1 changed files with 2 additions and 1 deletions
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue