Skip to content

Commit e50cb73

Browse files
committed
esp8266: Enable uselect module.
Select and poll will now work on socket objects.
1 parent cb53226 commit e50cb73

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
@@ -63,6 +63,7 @@
6363
#define MICROPY_PY_UJSON (1)
6464
#define MICROPY_PY_URANDOM (1)
6565
#define MICROPY_PY_URE (1)
66+
#define MICROPY_PY_USELECT (1)
6667
#define MICROPY_PY_UTIME_MP_HAL (1)
6768
#define MICROPY_PY_UZLIB (1)
6869
#define MICROPY_PY_LWIP (1)
@@ -164,6 +165,7 @@ extern const struct _mp_obj_module_t onewire_module;
164165
{ MP_OBJ_NEW_QSTR(MP_QSTR_os), (mp_obj_t)&uos_module }, \
165166
{ MP_OBJ_NEW_QSTR(MP_QSTR_json), (mp_obj_t)&mp_module_ujson }, \
166167
{ MP_OBJ_NEW_QSTR(MP_QSTR_errno), (mp_obj_t)&mp_module_uerrno }, \
168+
{ MP_OBJ_NEW_QSTR(MP_QSTR_select), (mp_obj_t)&mp_module_uselect }, \
167169

168170
#define MP_STATE_PORT MP_STATE_VM
169171

0 commit comments

Comments
 (0)