1
0
Fork 0
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:
Niklas Eiling 2022-11-08 10:22:42 -05:00 committed by Steffen Vogel
parent dfb2a967d8
commit 49db359851
2 changed files with 27 additions and 21 deletions

View file

@ -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;
} }