ThingPlug Test
Dependents: WizFi310_ThingPlug_Test WizFi310_ThingPlug_Test_P
Fork of WizFi310Interface by
Diff: WizFi310Interface.cpp
- Revision:
- 2:04c8d61984a3
- Parent:
- 1:16e57103a7dd
- Child:
- 3:dae9a0924a73
- Child:
- 7:b7019399eb1e
--- a/WizFi310Interface.cpp Mon Oct 10 05:12:51 2016 +0000 +++ b/WizFi310Interface.cpp Mon Apr 10 09:54:34 2017 +0000 @@ -182,7 +182,7 @@ struct wizfi310_socket *socket = (struct wizfi310_socket *)handle; int32_t recv = _wizfi310.recv(socket->id, (char*)data, size); - if (recv < 0) { + if (recv <= 0) { return NSAPI_ERROR_WOULD_BLOCK; }