Skip to content

Commit

Permalink
avoid returning undeclared variable
Browse files Browse the repository at this point in the history
  • Loading branch information
GJNorman authored Apr 27, 2024
1 parent efde37f commit d7fc075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PiCameraOpenCV.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def set_mode(self,main_or_lores):
self.active_config = main_or_lores
return
def read(self):

dst = None
if self.is_open:
dst = self.cap.capture_array(self.active_config)

Expand Down

0 comments on commit d7fc075

Please sign in to comment.