Browse Source

Minor change: make sensors-src quit immediately if no sensors are enabled

tags/0.0.0
Ryan Joseph 1 year ago
parent
commit
ea94a5d0ef
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      bin/sensors-src

+ 4
- 0
bin/sensors-src View File

@@ -47,6 +47,10 @@ if __name__ == '__main__':
else:
raise BaseException("Unknown sensor type '{}' configured!".format(s['name']))

if len(sl.keys()) == 0:
print "* No sensors enabled, ending immediately."
sh(None, None)

while RUNNING:
time.sleep(0.25)



Loading…
Cancel
Save