Skip to content

Commit 4f909a7

Browse files
committed
MbedClient: use SOCKET_TIMEOUT to initialize _timeout
1 parent f7d9db9 commit 4f909a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/SocketWrapper/src/MbedClient.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
arduino::MbedClient::MbedClient()
88
: _status(false),
9-
_timeout(0) {
9+
_timeout(SOCKET_TIMEOUT) {
1010
}
1111

1212
uint8_t arduino::MbedClient::status() {
@@ -214,7 +214,7 @@ size_t arduino::MbedClient::write(const uint8_t *buf, size_t size) {
214214
return 0;
215215

216216
sock->set_blocking(true);
217-
sock->set_timeout(SOCKET_TIMEOUT);
217+
sock->set_timeout(_timeout);
218218
int ret = sock->send(buf, size);
219219
sock->set_blocking(false);
220220
return ret >= 0 ? ret : 0;

0 commit comments

Comments
 (0)