Simple detection for LE910-NA1 modules
Fork of MTS-Cellular by
Diff: Utils/CellUtils.h
- Revision:
- 30:1326b623919a
- Parent:
- 18:fa0d8120f81f
diff -r edc613ed3f2e -r 1326b623919a Utils/CellUtils.h --- a/Utils/CellUtils.h Wed Jul 02 15:06:03 2014 +0000 +++ b/Utils/CellUtils.h Mon Jul 14 17:33:24 2014 +0000 @@ -84,7 +84,7 @@ if(size > 0) { result.append(tmp, size); } - done = (result.size() == previous); + done = (result.size() == previous && previous > 0); if(timer >= timeoutMillis) { if (command != "AT" && command != "at") { logWarning("sendCommand [%s] timed out after %d milliseconds", command.c_str(), timeoutMillis);