summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <siehputz@gmail.com>2021-02-24 17:04:05 -0600
committerroot <siehputz@gmail.com>2021-02-24 17:04:05 -0600
commit17ff5dcc9934e6ed442bfa4d6cac2a435093e4aa (patch)
tree4f0847cceb1bfae59d45c28bc3c19d2aa8aa74ca
parent8e15f36baada85345f8356ffcc8f8d48612a0c5e (diff)
Return NotImplementedError for PulseOut
-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++;