diff options
| author | Dan Halbert <halbert@halwitz.org> | 2021-03-19 09:57:21 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2021-03-19 09:57:21 -0400 |
| commit | 1512ca520b3e78ebc5cf6d9e031ac24c9206f1bb (patch) | |
| tree | fc69ba904523ac2a82e65686c9e2dbdd69944b43 /shared-bindings | |
| parent | 8293e1eedc300a5198dd8c20dea61539c3bd8dcc (diff) | |
Fix PWMOut non-error handling and never reset
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/pwmio/PWMOut.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-bindings/pwmio/PWMOut.c b/shared-bindings/pwmio/PWMOut.c index b70b0c741..01b5bf77a 100644 --- a/shared-bindings/pwmio/PWMOut.c +++ b/shared-bindings/pwmio/PWMOut.c @@ -103,6 +103,8 @@ STATIC mp_obj_t pwmio_pwmout_make_new(const mp_obj_type_t *type, size_t n_args, self->base.type = &pwmio_pwmout_type; pwmout_result_t result = common_hal_pwmio_pwmout_construct(self, pin, duty_cycle, frequency, variable_frequency); switch (result) { + case PWMOUT_OK: + break; case PWMOUT_INVALID_PIN: mp_raise_ValueError(translate("Invalid pin")); break; |
