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:
parent
1b06828711
commit
0c3a9f4729
2 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue