ThingPlug Test
Dependents: WizFi310_ThingPlug_Test WizFi310_ThingPlug_Test_P
Fork of WizFi310Interface by
Revision 6:007cec5e96c0, committed 2017-06-26
- Comitter:
- jehoon
- Date:
- Mon Jun 26 00:21:58 2017 +0000
- Parent:
- 5:72212beb817c
- Commit message:
- modify message parsing in isr #2
Changed in this revision
| WizFi310/WizFi310_msg.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/WizFi310/WizFi310_msg.cpp Mon Jun 26 00:17:10 2017 +0000
+++ b/WizFi310/WizFi310_msg.cpp Mon Jun 26 00:21:58 2017 +0000
@@ -305,7 +305,7 @@
int cid;
//if(buf[12] < '0' || buf[12] > '8' || buf[13] != ']') return;
- if( isdigit (buf[9])) return;
+ if( isdigit (buf[12])) return;
cid = x2i(buf[12]);
_con[cid].connected = false;
@@ -338,7 +338,7 @@
int cid;
//if(buf[8] < '0' || buf[8] > '8' || buf[9] != ']') return;
- if( isdigit (buf[9])) return;
+ if( isdigit (buf[8])) return;
cid = x2i(buf[8]);
_state.cid = cid;
@@ -410,7 +410,7 @@
char *c;
// if( (buf[0] < '0' || buf[0] > '8') ) return;
- if( isdigit (buf[9])) return;
+ if( isdigit (buf[0])) return;
cid = x2i(buf[0]);
if( cid != _state.cid ) return;
