Added source_delay property to SourceMixin which means it'll now appear
everywhere. Default is 0.01 which is just enough to drop CPU usage while
remaining responsive enough for the majority of purposes.
This commit is contained in:
Dave Jones
2016-03-19 16:46:22 +00:00
parent 807bdff2e4
commit 351a323832
2 changed files with 22 additions and 2 deletions

View File

@@ -31,6 +31,9 @@ class GPIOBadQueueLen(GPIODeviceError, ValueError):
class GPIOBadSampleWait(GPIODeviceError, ValueError):
"Error raised when a negative sampling wait period is specified"
class GPIOBadSourceDelay(GPIODeviceError, ValueError):
"Error raised when a negative source delay is specified"
class InputDeviceError(GPIODeviceError):
"Base class for errors specific to the InputDevice hierarchy"