diff --git a/hardware/esp8266com/esp8266/cores/esp8266/WString.h b/hardware/esp8266com/esp8266/cores/esp8266/WString.h index 269b70291..7f5786449 100644 --- a/hardware/esp8266com/esp8266/cores/esp8266/WString.h +++ b/hardware/esp8266com/esp8266/cores/esp8266/WString.h @@ -33,6 +33,7 @@ class StringSumHelper; typedef char* __FlashStringHelper; +//#define F(str) []() -> const char * { static const char tmp[] ICACHE_RODATA_ATTR = str; return &tmp[0]; }() #define F(str) str // The string class diff --git a/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/include/ClientContext.h b/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/include/ClientContext.h index ed7af4b0b..af8209af8 100644 --- a/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/include/ClientContext.h +++ b/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/include/ClientContext.h @@ -77,6 +77,7 @@ public: DEBUGV(":ur %d\r\n", _refcnt); if (--_refcnt == 0) { + flush(); if (_pcb) { tcp_arg(_pcb, NULL);