1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

lib/ip: fail making if configureJson() fails

This commit is contained in:
daniel-k 2018-01-09 16:34:26 +01:00
parent 81db98e448
commit da88b15af3

View file

@ -286,7 +286,10 @@ IpCoreFactory::make(PCIeCard* card, json_t *json_ips)
}
// IP-specific setup via JSON config
ipCoreFactory->configureJson(*ip, json_ip);
if(not ipCoreFactory->configureJson(*ip, json_ip)) {
cpp_warn << "Cannot configure IP from JSON";
continue;
}
// TODO: currently fails, fix and remove comment
// if(not ip->start()) {