mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	Minor tweak to PWMOutputDevice.is_active
...so that its implementation is more consistent with the other is_active methods
This commit is contained in:
		| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user