8000 Merge branch 'melvinmajor-patch-1' · pimoroni/bme680-python@6b5c136 · GitHub
[go: up one dir, main page]

Skip to co 8000 ntent

Commit 6b5c136

Browse files
committed
Merge branch 'melvinmajor-patch-1'
2 parents 8ecf91f + d7f7122 commit 6b5c136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/compensated-temperature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
def get_cpu_temperature():
3333
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
3434
output, _error = process.communicate()
35-
return float(output[output.index('=') + 1:output.rindex("'")])
35+
return float(output[output.index(b'=') + 1:output.rindex(b"'")])
3636

3737

3838
factor = 1.0 # Smaller numbers adjust temp down, vice versa

0 commit comments

Comments
 (0)
0