Minor tweak to PWMOutputDevice.is_active

...so that its implementation is more consistent with the other is_active methods
This commit is contained in:
Andrew Scheller
2016-02-03 03:34:12 +00:00
parent 4fc0673233
commit 29ca48d2a7

View File

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