Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING: Add Print::availableForWrite method #7658

Merged
merged 6 commits into from
Oct 27, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WiFiClient::availableForWrite proto matching Print
earlephilhower committed Oct 17, 2020

Verified

This commit was signed with the committer’s verified signature.
commit 31c99b453d55e38a692e3d24204f6d6dada43849
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/src/WiFiClient.cpp
Original file line number Diff line number Diff line change
@@ -195,7 +195,7 @@ bool WiFiClient::getSync() const
return _client->getSync();
}

size_t WiFiClient::availableForWrite ()
int WiFiClient::availableForWrite ()
{
return _client? _client->availableForWrite(): 0;
}
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/src/WiFiClient.h
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@ class WiFiClient : public Client, public SList<WiFiClient> {

static void setLocalPortStart(uint16_t port) { _localPort = port; }

size_t availableForWrite();
int availableForWrite() override;

friend class WiFiServer;