mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
esp8266: Do not call espconn_create in constructor of esp.socket.
Turns out this is supposed to be called only for UDP connections. Patch by Josef Gajdusek.
This commit is contained in:
@@ -86,7 +86,6 @@ STATIC mp_obj_t esp_socket_make_new(mp_obj_t type_in, mp_uint_t n_args,
|
||||
|
||||
esp_socket_obj_t *s = esp_socket_make_new_base();
|
||||
s->espconn = m_new_obj(struct espconn);
|
||||
espconn_create(s->espconn);
|
||||
|
||||
s->espconn->reverse = s;
|
||||
// TODO: UDP Support
|
||||
|
||||
Reference in New Issue
Block a user