diff options
author | Damien George <damien.p.george@gmail.com> | 2016-05-10 23:22:54 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-05-10 23:30:39 +0100 |
commit | 5ab98d5c41bffa799a551a2731d904cab346898e (patch) | |
tree | 3e69611c73314b7e7c374172a9118e76e4b43dce /stmhal/moduselect.c | |
parent | 088127d91cb593990cf4f04e64ca452671041e6f (diff) | |
download | micropython-5ab98d5c41bffa799a551a2731d904cab346898e.tar.gz micropython-5ab98d5c41bffa799a551a2731d904cab346898e.zip |
stmhal: Convert to use internal errno symbols; enable uerrno module.
Diffstat (limited to 'stmhal/moduselect.c')
-rw-r--r-- | stmhal/moduselect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/moduselect.c b/stmhal/moduselect.c index 8923b4d505..e87478ae62 100644 --- a/stmhal/moduselect.c +++ b/stmhal/moduselect.c @@ -25,11 +25,11 @@ */ #include <stdio.h> -#include <errno.h> #include "py/nlr.h" #include "py/obj.h" #include "py/objlist.h" +#include "py/mperrno.h" #include "py/mphal.h" #include "pybioctl.h" @@ -212,7 +212,7 @@ STATIC mp_obj_t poll_modify(mp_obj_t self_in, mp_obj_t obj_in, mp_obj_t eventmas mp_obj_poll_t *self = self_in; mp_map_elem_t *elem = mp_map_lookup(&self->poll_map, mp_obj_id(obj_in), MP_MAP_LOOKUP); if (elem == NULL) { - nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(ENOENT))); + nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(MP_ENOENT))); } ((poll_obj_t*)elem->value)->flags = mp_obj_get_int(eventmask_in); return mp_const_none; |