Skip to content

Commit

Permalink
Misc fixes for #120 and #126
Browse files Browse the repository at this point in the history
  • Loading branch information
boltgolt committed Mar 29, 2019
1 parent 323be9c commit c092529
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions src/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ def stop(status):
# 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
Expand Down
1 change: 1 addition & 0 deletions src/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c092529

Please sign in to comment.