Skip to content

Commit

Permalink
Update i2cEncoderLibV2.py
Browse files Browse the repository at this point in the history
The "return False" needs indenting for this updateStatus to work properly, otherwise it always returns False.
  • Loading branch information
wyealex committed May 22, 2019
1 parent 9a77887 commit 4a3f83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Raspberry Library/smbus2/i2cEncoderLibV2.py
Expand Up @@ -157,7 +157,7 @@ def updateStatus(self) :

if (self.stat == 0):
self.stat2 = 0
return False
return False

if (self.stat & INT2) != 0 :
self.stat2 = self.readEncoder8(REG_I2STATUS)
Expand Down

0 comments on commit 4a3f83f

Please sign in to comment.