Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit deca0ab

Browse files
committed
ssl_client: change type to uint16_t to store client->available() return value
1 parent 01cf570 commit deca0ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎libraries/SSLClient/src/ssl_client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ static int client_net_recv_timeout( void *ctx, unsigned char *buf,
8282
}
8383
unsigned long start = millis();
8484
unsigned long tms = start + timeout;
85-
int pending = client->available();
85+
uint16_t pending = client->available();
8686
// If there is data in the client, wait for message completion
8787
if((pending > 0) && (pending < len))
8888
do {
89-
int pending = client->available();
89+
uint16_t pending = client->available();
9090
if (pending < len && timeout > 0) {
9191
delay(1);
9292
} else break;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /