Return NotImplementedError for PulseOut
This commit is contained in:
parent
8e15f36baa
commit
17ff5dcc99
|
@ -63,9 +63,7 @@ void common_hal_pulseio_pulseout_construct(pulseio_pulseout_obj_t* self,
|
|||
const mcu_pin_obj_t* pin,
|
||||
uint32_t frequency,
|
||||
uint16_t duty_cycle) {
|
||||
if (!carrier || pin || frequency) {
|
||||
mp_raise_NotImplementedError(translate("Port does not accept pins or frequency. Construct and pass a PWMOut Carrier instead"));
|
||||
}
|
||||
mp_raise_NotImplementedError(translate("Unsupported operation"));
|
||||
|
||||
refcount++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue