diff options
author | Damien George <damien.p.george@gmail.com> | 2016-05-10 23:25:39 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-05-10 23:30:39 +0100 |
commit | 4f2ba9fbdcbafd7ae09199186320f4173bcc8c31 (patch) | |
tree | 2146c48c85567dbe715630d2dffe95fa75c50cb0 /esp8266/moduos.c | |
parent | 5ab98d5c41bffa799a551a2731d904cab346898e (diff) |
esp8266: Convert to use new MP_Exxx errno symbols.
These symbols are still defined in terms of the system Exxx symbols, and
can be switched to internal numeric definitions at a later stage.
Note that extmod/modlwip still uses many system Exxx symbols.
Diffstat (limited to 'esp8266/moduos.c')
-rw-r--r-- | esp8266/moduos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/esp8266/moduos.c b/esp8266/moduos.c index d75062eaf..bc2838d2d 100644 --- a/esp8266/moduos.c +++ b/esp8266/moduos.c @@ -25,7 +25,6 @@ */ #include <string.h> -#include <errno.h> #include "py/mpconfig.h" #include "py/nlr.h" @@ -33,6 +32,7 @@ #include "py/objtuple.h" #include "py/objstr.h" #include "py/runtime.h" +#include "py/mperrno.h" #include "extmod/misc.h" #include "genhdr/mpversion.h" #include "esp_mphal.h" @@ -74,7 +74,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_0(os_uname_obj, os_uname); #if MICROPY_VFS_FAT mp_obj_t vfs_proxy_call(qstr method_name, mp_uint_t n_args, const mp_obj_t *args) { if (MP_STATE_PORT(fs_user_mount)[0] == NULL) { - nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(ENODEV))); + nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(MP_ENODEV))); } mp_obj_t meth[n_args + 2]; |