1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

add flush() to unref() see #50

This commit is contained in:
Markus Sattler 2015-04-06 19:17:19 +02:00
parent 0276148613
commit 3bb2de4a85
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@
class StringSumHelper; class StringSumHelper;
typedef char* __FlashStringHelper; typedef char* __FlashStringHelper;
//#define F(str) []() -> const char * { static const char tmp[] ICACHE_RODATA_ATTR = str; return &tmp[0]; }()
#define F(str) str #define F(str) str
// The string class // The string class

View File

@ -77,6 +77,7 @@ public:
DEBUGV(":ur %d\r\n", _refcnt); DEBUGV(":ur %d\r\n", _refcnt);
if (--_refcnt == 0) if (--_refcnt == 0)
{ {
flush();
if (_pcb) if (_pcb)
{ {
tcp_arg(_pcb, NULL); tcp_arg(_pcb, NULL);