Commit 8cbb5092 authored by Antoine Lima's avatar Antoine Lima

small fix

parent c60eb583
...@@ -83,7 +83,7 @@ class Replay(Thread): ...@@ -83,7 +83,7 @@ class Replay(Thread):
def detectCam(): def detectCam():
if ON_RASP: if ON_RASP:
camdet = subprocess.check_output(["vcgencmd","get_camera"]) camdet = subprocess.check_output(["vcgencmd","get_camera"])
return bool(chr(camdet[-2])) return bool(int(chr(camdet[-2])))
else: else:
return False return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment