diff options
| author | Scott Shawcroft <scott@chickadee.tech> | 2017-08-10 11:55:34 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@chickadee.tech> | 2017-08-10 11:55:34 -0700 |
| commit | 42156484ae0ebb709e5543fb69505fe88148edf0 (patch) | |
| tree | 5ac78277e4b83c5f1609a77c535c737d6fc1acf5 /shared-bindings/pulseio/PulseIn.c | |
| parent | 37c72adc0fd1a9937910cee7f201078f531c6a54 (diff) | |
shared-bindings/atmel-samd: Fix and improve trigger duration timing on PulseIn.resume.
Diffstat (limited to 'shared-bindings/pulseio/PulseIn.c')
| -rw-r--r-- | shared-bindings/pulseio/PulseIn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/pulseio/PulseIn.c b/shared-bindings/pulseio/PulseIn.c index 5cdaa4cf3..0abc06680 100644 --- a/shared-bindings/pulseio/PulseIn.c +++ b/shared-bindings/pulseio/PulseIn.c @@ -159,7 +159,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(pulseio_pulsein_pause_obj, pulseio_pulsein_obj_pause); STATIC mp_obj_t pulseio_pulsein_obj_resume(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { enum { ARG_trigger_duration }; static const mp_arg_t allowed_args[] = { - { MP_QSTR_trigger_duration, MP_ARG_OBJ, {.u_int = 0} }, + { MP_QSTR_trigger_duration, MP_ARG_INT, {.u_int = 0} }, }; pulseio_pulsein_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]); mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)]; |
