From 0c3a9f4729475776a9897c7a50b09595a4eed5a5 Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Mon, 27 May 2024 15:31:54 +0200 Subject: [PATCH] fpga: convert SignalType to string before printing Signed-off-by: Niklas Eiling --- fpga/lib/ips/dino.cpp | 1 - lib/nodes/fpga.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fpga/lib/ips/dino.cpp b/fpga/lib/ips/dino.cpp index a5f2ff315..bb798d352 100644 --- a/fpga/lib/ips/dino.cpp +++ b/fpga/lib/ips/dino.cpp @@ -139,7 +139,6 @@ void DinoAdc::configureHardware() { void DinoAdc::setRegisterConfig(std::shared_ptr 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(dinoClk / sampleRate); diff --git a/lib/nodes/fpga.cpp b/lib/nodes/fpga.cpp index 853d7ab65..32c1671b9 100644 --- a/lib/nodes/fpga.cpp +++ b/lib/nodes/fpga.cpp @@ -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