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

fpga: convert SignalType to string before printing

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-05-27 15:31:54 +02:00 committed by pipeacosta
parent 08a26bf324
commit 851f66050c
2 changed files with 1 additions and 2 deletions

View file

@ -139,7 +139,6 @@ void DinoAdc::configureHardware() {
void DinoAdc::setRegisterConfig(std::shared_ptr<Register> reg,
double sampleRate) {
// This is Dino specific for now - we should possibly move this to Dino in the future
constexpr double dinoClk = 25e6; // Dino is clocked with 25 Mhz
uint32_t dinoTimerVal = static_cast<uint32_t>(dinoClk / sampleRate);

View file

@ -227,7 +227,7 @@ int FpgaNode::fastWrite(Sample *smps[], unsigned cnt) {
}
}
logger->info("Writing sample: {}, {}, {:#x}", smp->data[0].f,
smp->signals->getByIndex(0)->type, mem[0]);
signalTypeToString(smp->signals->getByIndex(0)->type), mem[0]);
dma->writeScatterGatherFast();
auto written = dma->writeScatterGatherPoll() /
sizeof(float); // The number of samples written