Skip to content

Commit f31652e

Browse files
fix : Zone parameter renamed to zone
1 parent 5e9631c commit f31652e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

orangetool/orangetool_system.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ def check_update(debug=False):
3030
return "Error"
3131

3232

33-
def get_temp(Zone=0, debug=False):
33+
def get_temp(zone=0, debug=False):
3434
"""
3535
Read cpu temperature.
3636
3737
:param debug : flag for using debug mode
38-
:param Zone : thermal Zone Index
38+
:param zone : thermal zone index
3939
:type debug:bool
40-
:type Zone:int
40+
:type zone:int
4141
:return: board temp as string in celsius
4242
"""
4343
try:
44-
command = open("/sys/class/thermal/thermal_zone" + str(Zone) + "/temp")
45-
# command=sub.Popen(["cat","/sys/class/thermal/thermal_zone"+str(Zone)+"/temp"],stderr=sub.PIPE,stdin=sub.PIPE,stdout=sub.PIPE)
44+
command = open("/sys/class/thermal/thermal_zone" + str(zone) + "/temp")
45+
# command=sub.Popen(["cat","/sys/class/thermal/thermal_zone"+str(zone)+"/temp"],stderr=sub.PIPE,stdin=sub.PIPE,stdout=sub.PIPE)
4646
# response=list(command.communicate())
4747
response = command.read()
4848
return response[:-1]

0 commit comments

Comments
 (0)