1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

WiFiClient cleanup

This commit is contained in:
Ivan Grokhotkov
2014-12-29 10:37:11 +03:00
parent 4944a8fb5f
commit ccfbd9c969
3 changed files with 9 additions and 9 deletions

View File

@ -126,7 +126,7 @@ int ICACHE_FLASH_ATTR WiFiClient::connect(IPAddress ip, uint16_t port)
int8_t ICACHE_FLASH_ATTR WiFiClient::_connected(void* pcb, int8_t err)
{
tcp_pcb* tpcb = reinterpret_cast<tcp_pcb*>(pcb);
_client = new ClientContext(tpcb, 1024, 0, 0);
_client = new ClientContext(tpcb, 0, 0);
_client->ref();
esp_schedule();
return ERR_OK;
@ -134,7 +134,7 @@ int8_t ICACHE_FLASH_ATTR WiFiClient::_connected(void* pcb, int8_t err)
void ICACHE_FLASH_ATTR WiFiClient::_err(int8_t err)
{
DEBUGV("WC:err\r\n");
DEBUGV(":err\r\n");
esp_schedule();
}