Don't (implicitly) set an initial_value in PWMOutputDevice's init method via the super() call

fixes #326
This commit is contained in:
Andrew Scheller
2016-05-23 20:57:58 +01:00
parent 2bced655c8
commit 3ee154189c

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