Skip to content

Commit 7e1f580

Browse files
committed
esp8266: Enable uerrno module, weak linked also as errno.
1 parent 4f2ba9f commit 7e1f580

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

esp8266/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#define MICROPY_PY_SYS_MAXSIZE (1)
4747
#define MICROPY_PY_SYS_EXIT (1)
4848
#define MICROPY_PY_SYS_STDFILES (1)
49+
#define MICROPY_PY_UERRNO (1)
4950
#define MICROPY_PY_UBINASCII (1)
5051
#define MICROPY_PY_UCTYPES (1)
5152
#define MICROPY_PY_UHASHLIB (1)
@@ -141,6 +142,7 @@ extern const struct _mp_obj_module_t onewire_module;
141142
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&utime_module }, \
142143
{ MP_OBJ_NEW_QSTR(MP_QSTR_os), (mp_obj_t)&uos_module }, \
143144
{ MP_OBJ_NEW_QSTR(MP_QSTR_json), (mp_obj_t)&mp_module_ujson }, \
145+
{ MP_OBJ_NEW_QSTR(MP_QSTR_errno), (mp_obj_t)&mp_module_uerrno }, \
144146

145147
#define MP_STATE_PORT MP_STATE_VM
146148

0 commit comments

Comments
 (0)