1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2025-06-29 00:30:31 +02:00

Merge upstream

This commit is contained in:
cn
2021-01-08 11:26:06 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ sensor.set_filter(bme680.FILTER_SIZE_3)
def get_cpu_temperature():
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
output, _error = process.communicate()
return float(output[output.index('=') + 1:output.rindex("'")])
return float(output[output.index(b'=') + 1:output.rindex(b"'")])
factor = 1.0 # Smaller numbers adjust temp down, vice versa