Skip to content

Commit

Permalink
Merge pull request #166 from lurch/patch-2
Browse files Browse the repository at this point in the history
Minor tweak to PWMOutputDevice.is_active
  • Loading branch information
waveform80 committed Feb 7, 2016
2 parents cc9d3b0 + 29ca48d commit 3f62bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpiozero/output_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def is_active(self):
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):
Expand Down

0 comments on commit 3f62bc8

Please sign in to comment.