Revert "Enable compatibility with libconfig older than v1.5"

This commit is contained in:
pixl
2020-11-23 15:42:29 -05:00
committed by GitHub
parent 1d6a89881f
commit ec8115634d
13 changed files with 44 additions and 44 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ ChangeHostAction::Config::Config(Device *device, libconfig::Setting& config)
: Action::Config(device)
{
try {
auto& host = config["host"];
auto& host = config.lookup("host");
if(host.getType() == libconfig::Setting::TypeInt) {
_offset = false;
_host = host;
@@ -116,4 +116,4 @@ uint8_t ChangeHostAction::Config::nextHost(hidpp20::ChangeHost::HostInfo info)
} else
return _host;
}
}
}