Skip to content

Commit 0907145

Browse files
committed
ssl_client: change type to uint16_t to store client->available() return value
1 parent 61bed64 commit 0907145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libraries/SSLClient/src/ssl_client.cpp

+2-2
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)