cbsatplugin/atmisccmdplugin/src/atcommandparser.cpp
changeset 51 625f43ae9362
parent 47 9e2a905b887f
child 57 5ebadcda06cb
--- a/cbsatplugin/atmisccmdplugin/src/atcommandparser.cpp	Tue Jul 27 13:42:03 2010 +0300
+++ b/cbsatplugin/atmisccmdplugin/src/atcommandparser.cpp	Fri Aug 06 16:43:21 2010 +0300
@@ -268,12 +268,14 @@
     // Extract the token at this point            
     TPtrC8 retVal = iCmd.MarkedToken();
     
-    // Skip comma, space and control chars
-    while(!iCmd.Eos() && (chr == ',' || chr.IsSpace() || chr.IsControl()))
-        {
-        iCmd.Inc();
-        chr = iCmd.Peek();
-        }
+    // Skip the first delimiter and any further space and control chars
+    do
+      {
+      iCmd.Inc();
+      chr = iCmd.Peek();
+      }
+    while(!iCmd.Eos() && (chr.IsSpace() || chr.IsControl()));
+    
     TRACE_FUNC_EXIT
     return retVal;
     }