From: Frank Petroski <78286538+frank-pet@users.noreply.github.com> Date: Sat, 16 Nov 2024 20:48:17 +0000 (-0500) Subject: Update PWMOut.py X-Git-Tag: 8.56.0^2~2^2~4 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/df7475d1551700280c3f4887d72ffa5d0a3cf11b Update PWMOut.py --- diff --git a/src/adafruit_blinka/microcontroller/bcm283x/pwmio/PWMOut.py b/src/adafruit_blinka/microcontroller/bcm283x/pwmio/PWMOut.py index 3a58d64..c149406 100644 --- a/src/adafruit_blinka/microcontroller/bcm283x/pwmio/PWMOut.py +++ b/src/adafruit_blinka/microcontroller/bcm283x/pwmio/PWMOut.py @@ -103,8 +103,8 @@ class PWMOut: # pylint: disable=invalid-name raise TypeError("Invalid duty cycle type, should be int or float.") if not 0 <= duty_cycle <= 65535: - raise ValueError("Invalid duty cycle value, should be between " - "0 and 65535") + raise ValueError( + "Invalid duty cycle value, should be between 0 and 65535") # convert from 16-bit duty_cycle /= 65535.0