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:
Paul Sokolovsky 2015-06-02 22:38:50 +03:00
parent 2ffb6e1b15
commit a32538bb66

View File

@ -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(); esp_socket_obj_t *s = esp_socket_make_new_base();
s->espconn = m_new_obj(struct espconn); s->espconn = m_new_obj(struct espconn);
espconn_create(s->espconn);
s->espconn->reverse = s; s->espconn->reverse = s;
// TODO: UDP Support // TODO: UDP Support