Misc fixes for #120 and #126

This commit is contained in:
boltgolt 2019-03-29 22:51:08 +01:00
parent 323be9cf8d
commit c092529a98
No known key found for this signature in database
GPG key ID: BECEC9937E1AAE26
3 changed files with 6 additions and 1 deletions

2
debian/postinst vendored
View file

@ -73,7 +73,7 @@ if not os.path.exists("/tmp/howdy_picked_device"):
# MIGRATION 2.5.0 -> 2.5.1
# Remove unsafe automatic dismissal of lock screen
if key == "dismiss_lockscreen":
if (value == "true"):
if value == "true":
print("DEPRECATION: Config falue dismiss_lockscreen is no longer supported because of login loop issues.")
continue

View file

@ -183,6 +183,10 @@ while True:
# Grab a single frame of video
ret, frame = video_capture.read()
if frames == 1 and ret is False:
print("Could not read from camera")
exit(12)
try:
# Convert from color to grayscale
# First processing of frame, so frame errors show up here

View file

@ -75,4 +75,5 @@ exposure = -1
[debug]
# Show a short but detailed diagnostic report in console
# Enabling this can cause some UI apps to fail, only enable it to debug
end_report = false