summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/raspberrypi/common-hal/pulseio/PulseOut.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ports/raspberrypi/common-hal/pulseio/PulseOut.c b/ports/raspberrypi/common-hal/pulseio/PulseOut.c
index 57c516afd..f3f712143 100644
--- a/ports/raspberrypi/common-hal/pulseio/PulseOut.c
+++ b/ports/raspberrypi/common-hal/pulseio/PulseOut.c
@@ -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++;