AT Parser and bufferedSerial based SPWF library
Dependencies: ATParser
Dependents: X_NUCLEO_IDW01M1v2
Fork of SPWF01SA by
Revision 22:2eb9b3c54506, committed 2016-10-24
- Comitter:
- mansiag
- Date:
- Mon Oct 24 10:37:26 2016 +0000
- Parent:
- 21:cd722edbb644
- Child:
- 23:0b01aa59bb6f
- Commit message:
- Return -1 when timeout (for supporting non-blocking mode).
Changed in this revision
| SPWFSA01.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SPWFSA01.cpp Tue Sep 27 04:05:46 2016 +0000
+++ b/SPWFSA01.cpp Mon Oct 24 10:37:26 2016 +0000
@@ -349,7 +349,7 @@
return -2;
}
if (timer.read_ms() > SPWFSA01_SOCKQ_TIMEOUT) {
- return -2;
+ return -1;
}
}
if(recv_amount > amount)
