Return NotImplementedError for PulseOut

This commit is contained in:
root 2021-02-24 17:04:05 -06:00
parent 8e15f36baa
commit 17ff5dcc99
1 changed files with 1 additions and 3 deletions

View File

@ -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++;