summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/MTS_IO_QuectelRadio.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp
index 8ac9bac..472255f 100644
--- a/src/MTS_IO_QuectelRadio.cpp
+++ b/src/MTS_IO_QuectelRadio.cpp
@@ -167,8 +167,10 @@ CellularRadio::CODE QuectelRadio::getNetwork(std::string& sNetwork) {
// +COPS: 0,0,"CHN-UNICOM UNICOM",7
// ^start ^end
+ // +COPS: 0,0,"AT&T",7
+ // ^st ^end
size_t start = sValue.find("\"") + 1;
- size_t end = sValue.find(" ", start);
+ size_t end = sValue.find_first_of(" \"", start);
sNetwork = sValue.substr(start, end-start);
} else {
sNetwork = ""; // Not connected to any network