mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-23 12:18:37 -05:00
Fix loading rig save data
This commit is contained in:
parent
936a640328
commit
1344121f55
@ -462,12 +462,12 @@ bool AppConfig::load() {
|
|||||||
if (rig_node->hasAnother("model")) {
|
if (rig_node->hasAnother("model")) {
|
||||||
int loadModel;
|
int loadModel;
|
||||||
rig_node->getNext("model")->element()->get(loadModel);
|
rig_node->getNext("model")->element()->get(loadModel);
|
||||||
winMax.store(loadModel?loadModel:1);
|
rigModel.store(loadModel?loadModel:1);
|
||||||
}
|
}
|
||||||
if (rig_node->hasAnother("rate")) {
|
if (rig_node->hasAnother("rate")) {
|
||||||
int loadRate;
|
int loadRate;
|
||||||
rig_node->getNext("rate")->element()->get(loadRate);
|
rig_node->getNext("rate")->element()->get(loadRate);
|
||||||
winMax.store(loadRate?loadRate:57600);
|
rigRate.store(loadRate?loadRate:57600);
|
||||||
}
|
}
|
||||||
if (rig_node->hasAnother("port")) {
|
if (rig_node->hasAnother("port")) {
|
||||||
rigPort = rig_node->getNext("port")->element()->toString();
|
rigPort = rig_node->getNext("port")->element()->toString();
|
||||||
|
Loading…
Reference in New Issue
Block a user