| 298 | } |
| 299 | |
| 300 | AppConfig::AppConfig() { |
| 301 | winX.store(0); |
| 302 | winY.store(0); |
| 303 | winW.store(0); |
| 304 | winH.store(0); |
| 305 | winMax.store(false); |
| 306 | showTips.store(true); |
| 307 | perfMode.store(PERF_NORMAL); |
| 308 | themeId.store(0); |
| 309 | fontScale.store(0); |
| 310 | snap.store(1); |
| 311 | centerFreq.store(100000000); |
| 312 | waterfallLinesPerSec.store(DEFAULT_WATERFALL_LPS); |
| 313 | spectrumAvgSpeed.store(0.65f); |
| 314 | dbOffset.store(0); |
| 315 | modemPropsCollapsed.store(false); |
| 316 | mainSplit = -1; |
| 317 | visSplit = -1; |
| 318 | bookmarkSplit = 200; |
| 319 | #ifdef CUBICSDR_DEFAULT_HIDE_BOOKMARKS |
| 320 | bookmarksVisible.store(false); |
| 321 | #else |
| 322 | bookmarksVisible.store(true); |
| 323 | #endif |
| 324 | |
| 325 | #ifdef USE_HAMLIB |
| 326 | rigEnabled.store(false); |
| 327 | rigModel.store(1); |
| 328 | rigRate.store(57600); |
| 329 | rigPort = "/dev/ttyUSB0"; |
| 330 | rigControlMode.store(true); |
| 331 | rigFollowMode.store(true); |
| 332 | #endif |
| 333 | } |
| 334 | |
| 335 | DeviceConfig *AppConfig::getDevice(const std::string& deviceId) { |
| 336 | if (deviceConfig.find(deviceId) == deviceConfig.end()) { |
nothing calls this directly
no outgoing calls
no test coverage detected