Make sure bounce is always integer when passed to RPi.GPIO and RPIO, and
added some checks to make sure a negative bounce isn't specified either
This commit is contained in:
Dave Jones
2016-03-19 17:02:46 +00:00
parent 807bdff2e4
commit 9432046392
4 changed files with 14 additions and 2 deletions

View File

@@ -58,6 +58,9 @@ class PinInvalidPull(PinError, ValueError):
class PinInvalidEdges(PinError, ValueError):
"Error raised when attempting to assign an invalid edge detection to a pin"
class PinInvalidBounce(PinError, ValueError):
"Error raised when attempting to assign an invalid bounce time to a pin"
class PinSetInput(PinError, AttributeError):
"Error raised when attempting to set a read-only pin"