Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems
Dependents: mtsas mtsas mtsas mtsas
Diff: Cellular/CellularFactory.cpp
- Revision:
- 27:ec44d5a9544f
- Parent:
- 26:2b769ed8de4f
- Child:
- 30:1326b623919a
--- a/Cellular/CellularFactory.cpp Thu Jun 26 21:12:37 2014 +0000 +++ b/Cellular/CellularFactory.cpp Mon Jun 30 17:13:00 2014 +0000 @@ -38,7 +38,7 @@ /* AT#VVERSION is a UIP specific AT command * if we get an error response, we're not using a UIP board */ reply = sendCommand(io, "AT#VVERSION", 2000); - if (reply.find("ERROR") != string::npos) { + if ((reply.find("ERROR") != string::npos) || (reply.find("error") != string::npos)) { uip = false; } else { uip = true;