Cleaned the code up

Spacing mostly and unnecesarry comments
This commit is contained in:
2017-05-16 01:54:33 +03:00
parent c70b6f1b6d
commit 9c3824cede
4 changed files with 4 additions and 17 deletions

View File

@@ -1,7 +1,5 @@
def check_temp(): #return temp. yours Rpi
cmd = '/opt/vc/bin/vcgencmd measure_temp'
line = os.popen(cmd).readline().strip()
temp = line.split('=')[1].split("'")[0]
return temp
return temp