mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
Fix NO_GLOBAL_INSTANCES for Serial ports (#8184)
This commit is contained in:
committed by
GitHub
parent
09c4e33106
commit
c9f27410f7
@ -849,6 +849,10 @@ bool HTTPClient::connect(void)
|
||||
{
|
||||
if(_reuse && _canReuse && connected()) {
|
||||
DEBUG_HTTPCLIENT("[HTTP-Client] connect: already connected, reusing connection\n");
|
||||
|
||||
#if defined(NO_GLOBAL_INSTANCES) || defined(NO_GLOBAL_STREAMDEV)
|
||||
StreamNull devnull;
|
||||
#endif
|
||||
_client->sendAvailable(devnull); // clear _client's output (all of it, no timeout)
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user