This library controls the WNC. There is a derived class for usage from the K64F board.
Fork of WncControllerLibrary by
Revision 7:e6f22159ef23, committed 2016-09-09
- Comitter:
- fkellermavnet
- Date:
- Fri Sep 09 14:15:36 2016 +0000
- Parent:
- 6:a656e820d7ff
- Child:
- 8:33c33f7cf84e
- Commit message:
- for at_sockread_wnc, if the WNC goes berserk I prevent it from causing a memory overwrite.
Changed in this revision
| WncController.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/WncController.cpp Thu Sep 08 18:57:56 2016 +0000
+++ b/WncController.cpp Fri Sep 09 14:15:36 2016 +0000
@@ -1525,9 +1525,9 @@
if (i < 0)
dbgPuts("Invalid READ string!");
- else if (i > 2*MAX_WNC_READ_BYTES) {
+ else if (i > 2*n) {
// Bound the ill formated WNC read string!
- i = 2*MAX_WNC_READ_BYTES;
+ i = 2*n;
dbgPuts("TRUNCATING read data!");
}
