Library to use a wifly module: RN 131 C/G
Dependents: RN-XV_simple_server
Diff: Wifly.cpp
- Revision:
- 9:984c1436dd42
- Parent:
- 7:c6cf9ae117b1
- Child:
- 10:d3e3e925f62f
diff -r d72bfdccb5d8 -r 984c1436dd42 Wifly.cpp --- a/Wifly.cpp Mon Aug 15 12:52:49 2011 +0000 +++ b/Wifly.cpp Mon Aug 15 16:05:21 2011 +0000 @@ -272,12 +272,10 @@ bool Wifly::CmdMode() { - int i = 0; - while(!Send("$$$", "CMD")) + if(!Send("$$$", "CMD")) { printf("Wifly::CmdMode: cannot enter in cmd mode\r\n"); - i++; - if ( i == 4 ) return false; + return false; } return true; }