Changeset 9854 in ntrip for trunk/BNC/src/bncsettings.cpp
- Timestamp:
- Oct 21, 2022, 2:04:29 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncsettings.cpp
r9850 r9854 44 44 45 45 QSettings settings(BNC_CORE->confFileName(), QSettings::IniFormat); 46 47 #ifdef GNSSCENTER_PLUGIN48 settings.beginGroup("BNC");49 #endif50 46 51 47 // Read from File … … 151 147 setValue_p("serialMountPoint", ""); 152 148 setValue_p("serialPortName", ""); 153 setValue_p("serialBaudRate", 149 setValue_p("serialBaudRate", "9600"); 154 150 setValue_p("serialFlowControl", "OFF"); 155 setValue_p("serialDataBits", 156 setValue_p("serialParity", 157 setValue_p("serialStopBits", 158 setValue_p("serialAutoNMEA", 151 setValue_p("serialDataBits", "8"); 152 setValue_p("serialParity", "NONE"); 153 setValue_p("serialStopBits", "1"); 154 setValue_p("serialAutoNMEA", "Auto"); 159 155 setValue_p("serialFileNMEA", ""); 160 156 setValue_p("serialHeightNMEA", ""); … … 162 158 // Outages 163 159 setValue_p("adviseObsRate", ""); 164 setValue_p("adviseFail", 165 setValue_p("adviseReco", 160 setValue_p("adviseFail", "15"); 161 setValue_p("adviseReco", "5"); 166 162 setValue_p("adviseScript", ""); 167 163 // Miscellaneous 168 164 setValue_p("miscMount", ""); 169 165 setValue_p("miscIntr", ""); 170 setValue_p("miscScanRTCM", 166 setValue_p("miscScanRTCM", "0"); 171 167 setValue_p("miscPort", ""); 172 168 // Combination … … 209 205 setValue_p("uploadSamplRtcmEph", "5"); 210 206 } 211 #ifdef GNSSCENTER_PLUGIN212 settings.endGroup();213 #endif214 207 } 215 208 … … 262 255 settings.clear(); 263 256 QMapIterator<QString, QVariant> it(BNC_CORE->_settings); 264 #ifdef GNSSCENTER_PLUGIN 265 settings.beginGroup("BNC"); 266 #endif 257 267 258 while (it.hasNext()) { 268 259 it.next(); 269 260 settings.setValue(it.key(), it.value()); 270 261 } 271 #ifdef GNSSCENTER_PLUGIN 272 settings.endGroup(); 273 #endif 262 274 263 settings.sync(); 275 264 }
Note:
See TracChangeset
for help on using the changeset viewer.