Bugfix, all the parameters for a device tried to be saved as non parameters
This commit is contained in:
parent
9eac84fb4a
commit
1ea754da3d
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ int Settings::setStringSetting(Node type, int intDeviceId, const std::wstring &n
|
|||
std::string newValue = TelldusCore::wideToString(value);
|
||||
cfg_t *p = cfg_device;
|
||||
if (parameter) {
|
||||
cfg_t *cfg_p = cfg_getsec(cfg_device, "parameters");
|
||||
p = cfg_getsec(cfg_device, "parameters");
|
||||
}
|
||||
cfg_opt_t *opt = cfg_getopt(p, TelldusCore::wideToString(name).c_str());
|
||||
if (!opt) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue