Revert "Enable compatibility with libconfig older than v1.5"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user