Skip to content

Commit 99d4212

Browse files
committed
Oops, fixed a pylint failure.
1 parent 090842d commit 99d4212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_pca9685.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def duty_cycle(self) -> int:
7777
pwm = self._pca.pwm_regs[self._index]
7878
if pwm[0] == 0x1000:
7979
return 0xFFFF
80-
elif pwm[1] == 0x1000:
80+
if pwm[1] == 0x1000:
8181
return 0x0000
8282
return pwm[1] << 4
8383

0 commit comments

Comments
 (0)