Merge pull request #166 from lurch/patch-2

Minor tweak to PWMOutputDevice.is_active
This commit is contained in:
Dave Jones
2016-02-07 20:32:06 +00:00

View File

@@ -368,7 +368,7 @@ class PWMOutputDevice(OutputDevice):
Returns ``True`` if the device is currently active (:attr:`value` is
non-zero) and ``False`` otherwise.
"""
return self.value > 0.0
return self.value != 0
@property
def frequency(self):