diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-10-25 10:52:03 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-10-25 10:52:03 -0700 |
| commit | d2ddf36c1da8f3f352da8a8aec89abe9498560ec (patch) | |
| tree | f90386c335453f545d4c24b02079bfede176b9dc /shared-bindings/pulseio/PulseIn.c | |
| parent | 00766e43a0dbe2858a9e8e30ee4d3aeb154beb2f (diff) | |
shared-bindings: Use unary_op type.
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 da9e6ac2c..8be62f4bf 100644 --- a/shared-bindings/pulseio/PulseIn.c +++ b/shared-bindings/pulseio/PulseIn.c @@ -228,7 +228,7 @@ const mp_obj_property_t pulseio_pulsein_maxlen_obj = { //| pulses = pulseio.PulseIn(pin) //| print(len(pulses)) //| -STATIC mp_obj_t pulsein_unary_op(mp_uint_t op, mp_obj_t self_in) { +STATIC mp_obj_t pulsein_unary_op(mp_unary_op_t op, mp_obj_t self_in) { pulseio_pulsein_obj_t *self = MP_OBJ_TO_PTR(self_in); raise_error_if_deinited(common_hal_pulseio_pulsein_deinited(self)); uint16_t len = common_hal_pulseio_pulsein_get_len(self); |
