aboutsummaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-10-25 10:52:03 -0700
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-10-25 10:52:03 -0700
commitd2ddf36c1da8f3f352da8a8aec89abe9498560ec (patch)
treef90386c335453f545d4c24b02079bfede176b9dc /shared-bindings
parent00766e43a0dbe2858a9e8e30ee4d3aeb154beb2f (diff)
shared-bindings: Use unary_op type.
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/nvm/ByteArray.c2
-rw-r--r--shared-bindings/pulseio/PulseIn.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/nvm/ByteArray.c b/shared-bindings/nvm/ByteArray.c
index 361d03c55..f4e046378 100644
--- a/shared-bindings/nvm/ByteArray.c
+++ b/shared-bindings/nvm/ByteArray.c
@@ -53,7 +53,7 @@
//|
//| Return the length. This is used by (`len`)
//|
-STATIC mp_obj_t nvm_bytearray_unary_op(mp_uint_t op, mp_obj_t self_in) {
+STATIC mp_obj_t nvm_bytearray_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
nvm_bytearray_obj_t *self = MP_OBJ_TO_PTR(self_in);
uint16_t len = common_hal_nvm_bytearray_get_length(self);
switch (op) {
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);