mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
ips: fix some formatting issues
This commit is contained in:
parent
dfb2a967d8
commit
49db359851
2 changed files with 27 additions and 21 deletions
|
@ -46,6 +46,11 @@ bool Dma::init()
|
||||||
coalesce = 1;
|
coalesce = 1;
|
||||||
delay = 0;
|
delay = 0;
|
||||||
|
|
||||||
|
if (!configSet) {
|
||||||
|
logger->error("DMA configuration not set");
|
||||||
|
throw RuntimeError("DMA configuration not set");
|
||||||
|
}
|
||||||
|
|
||||||
// If there is a scatter-gather interface, then this instance has it
|
// If there is a scatter-gather interface, then this instance has it
|
||||||
// hasSG = busMasterInterfaces.count(sgInterface) == 1;
|
// hasSG = busMasterInterfaces.count(sgInterface) == 1;
|
||||||
if (hasScatterGather())
|
if (hasScatterGather())
|
||||||
|
@ -639,5 +644,6 @@ DmaFactory::configureJson(Core& ip, json_t* json)
|
||||||
logger->error("Failed to parse DMA configuration");
|
logger->error("Failed to parse DMA configuration");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
dma.configSet = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue