Skip to content

Commit 870b67f

Browse files
committed
Decode fix for #3
1 parent 0c5111f commit 870b67f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/compensated-temperature.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
def get_cpu_temperature():
2727
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
2828
output, _error = process.communicate()
29+
output = output.decode()
2930
return float(output[output.index('=') + 1:output.rindex("'")])
3031

3132

0 commit comments

Comments
 (0)