Merge pull request #327 from lurch/patch-1

Don't (implicitly) set an initial_value in PWMOutputDevice's init method via the super() call
This commit is contained in:
Ben Nuttall
2016-05-26 23:08:25 +01:00

View File

@@ -299,7 +299,7 @@ class PWMOutputDevice(OutputDevice):
self._controller = None
if not 0 <= initial_value <= 1:
raise OutputDeviceBadValue("initial_value must be between 0 and 1")
super(PWMOutputDevice, self).__init__(pin, active_high)
super(PWMOutputDevice, self).__init__(pin, active_high, initial_value=None)
try:
# XXX need a way of setting these together
self.pin.frequency = frequency