Index: /trunk/BNC/src/PPP/pppSatObs.cpp
===================================================================
--- /trunk/BNC/src/PPP/pppSatObs.cpp	(revision 5934)
+++ /trunk/BNC/src/PPP/pppSatObs.cpp	(revision 5935)
@@ -88,7 +88,8 @@
   // Select two pseudoranges and two phase observations
   // --------------------------------------------------
-  const string preferredAttrib = "CWP";
+  const string preferredAttrib = "CWP?";
   for (unsigned iPref = 0; iPref < preferredAttrib.length(); iPref++) {
-    string obsType1 = "1?"; obsType1[1] = preferredAttrib[iPref];
+    string obsType1 = (preferredAttrib[iPref] == '?') ? string("1") : string("1") + preferredAttrib[iPref];
+    string obsType2 = (preferredAttrib[iPref] == '?') ? string("2") : string("2") + preferredAttrib[iPref];
     if (_validObs1 == 0) {
       for (unsigned ii = 0; ii < _allObs.size(); ii++) {
@@ -100,5 +101,4 @@
     }
     if (dualFreq) {
-      string obsType2 = "2?"; obsType2[1] = preferredAttrib[iPref];
       if (_validObs2 == 0) {
         for (unsigned ii = 0; ii < _allObs.size(); ii++) {
