Skip to content

Commit

Permalink
check functions #2
Browse files Browse the repository at this point in the history
  • Loading branch information
massmux committed Jun 4, 2021
1 parent 50e1fa5 commit 91c606e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions entropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ def getEntropy(self):
if self.source=='mic':
self.entropy=self._getMicSd() if self._checkMic() else False
elif self.source=='photo':
self.entropy = False
if self._checkCam():
self._takePhoto()
self.entropy=self._getImgRnd()
else:
self.entropy=False
return self.entropy

0 comments on commit 91c606e

Please sign in to comment.