]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Update PWMOut.py
authorFrank Petroski <78286538+frank-pet@users.noreply.github.com>
Sat, 16 Nov 2024 20:48:17 +0000 (15:48 -0500)
committerGitHub <noreply@github.com>
Sat, 16 Nov 2024 20:48:17 +0000 (15:48 -0500)
src/adafruit_blinka/microcontroller/bcm283x/pwmio/PWMOut.py

index 3a58d64afbdf39226de60228e60c26d1efa66032..c1494064be57c55a0551c059c2a71a9a87488c42 100644 (file)
@@ -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