EEN for Chris
Fork of MTS-Cellular by
Revision 50:144099030d9b, committed 2014-08-05
- Comitter:
- Vanger
- Date:
- Tue Aug 05 15:02:00 2014 +0000
- Parent:
- 49:1fc51c53cebf
- Child:
- 51:ffc556ba33f7
- Commit message:
- Removed comments to simplify reading code for sendCommand() under Cellular.cpp
Changed in this revision
Cellular/Cellular.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Cellular/Cellular.cpp Mon Aug 04 22:16:18 2014 +0000 +++ b/Cellular/Cellular.cpp Tue Aug 05 15:02:00 2014 +0000 @@ -215,13 +215,10 @@ //OK, ERROR, CONNECT are the 3 most likely responses if(result.size() > (command.size() + 2)) { if(result.find("OK") != std::string::npos) { - //Found OK done = true; } else if (result.find("ERROR") != std::string::npos) { - //Found ERROR done = true; } else if (result.find("NO CARRIER") != std::string::npos) { - //Found NO CARRIER done = true; } else if (result.find("RING") != std::string::npos) { done = true; @@ -239,7 +236,6 @@ if(type == MTSMC_H5 || type == MTSMC_G3 || type == MTSMC_EV3 || type == MTSMC_C2) { if (result.find("CONNECT") != std::string::npos) { - //Found CONNECT //Could add socketOpened flag check here if CONNECT is found done = true; } else if(result.find("NO DIALTONE") != std::string::npos) {