Skip to content

Commit df7475d

Browse files
authored
Update PWMOut.py
1 parent a16e41a commit df7475d

File tree

1 file changed

+2
-2
lines changed
  • src/adafruit_blinka/microcontroller/bcm283x/pwmio

1 file changed

+2
-2
lines changed

src/adafruit_blinka/microcontroller/bcm283x/pwmio/PWMOut.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def duty_cycle(self, duty_cycle):
103103
raise TypeError("Invalid duty cycle type, should be int or float.")
104104

105105
if not 0 <= duty_cycle <= 65535:
106-
raise ValueError("Invalid duty cycle value, should be between "
107-
"0 and 65535")
106+
raise ValueError(
107+
"Invalid duty cycle value, should be between 0 and 65535")
108108

109109
# convert from 16-bit
110110
duty_cycle /= 65535.0

0 commit comments

Comments
 (0)