Increased waiting time on 'no focus' to avoid nasty canon bug
This commit is contained in:
@@ -51,7 +51,8 @@ class Camera_gPhoto:
|
|||||||
if "ERROR" in output:
|
if "ERROR" in output:
|
||||||
raise subprocess.CalledProcessError(returncode=0, cmd=cmd, output=output)
|
raise subprocess.CalledProcessError(returncode=0, cmd=cmd, output=output)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
if "Canon EOS Capture failed: 2019" in e.output:
|
if "Canon EOS Capture failed: 2019" in e.output or
|
||||||
|
"Perhaps no focus" in e.output:
|
||||||
raise CameraException("Can't focus!\nMove a little bit!", True)
|
raise CameraException("Can't focus!\nMove a little bit!", True)
|
||||||
elif "No camera found" in e.output:
|
elif "No camera found" in e.output:
|
||||||
raise CameraException("No (supported) camera detected!", False)
|
raise CameraException("No (supported) camera detected!", False)
|
||||||
|
|||||||
@@ -320,7 +320,7 @@ class Photobooth:
|
|||||||
self.display.clear()
|
self.display.clear()
|
||||||
self.display.show_message(e.message)
|
self.display.show_message(e.message)
|
||||||
self.display.apply()
|
self.display.apply()
|
||||||
sleep(3)
|
sleep(5)
|
||||||
else:
|
else:
|
||||||
raise CameraException("Giving up! Please start again!", False)
|
raise CameraException("Giving up! Please start again!", False)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user