Skip to content

Commit e5c4d98

Browse files
committed
Merge branch 'cipy-master'
2 parents 99afc3e + 5f63416 commit e5c4d98

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/all-in-one-no-pm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def display_text(variable, data, unit):
7878

7979
# Get the temperature of the CPU for compensation
8080
def get_cpu_temperature():
81-
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
81+
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True)
8282
output, _error = process.communicate()
8383
output = output.decode()
8484
return float(output[output.index('=') + 1:output.rindex("'")])

examples/all-in-one.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def display_text(variable, data, unit):
8484

8585
# Get the temperature of the CPU for compensation
8686
def get_cpu_temperature():
87-
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
87+
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True)
8888
output, _error = process.communicate()
8989
output = output.decode()
9090
return float(output[output.index('=') + 1:output.rindex("'")])

examples/luftdaten.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def read_values():
7272

7373
# Get CPU temperature to use for compensation
7474
def get_cpu_temperature():
75-
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
75+
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True)
7676
output, _error = process.communicate()
7777
output = output.decode()
7878
return float(output[output.index('=') + 1:output.rindex("'")])

0 commit comments

Comments
 (0)