From f6789e473968084a0ea4d139bdf67e6b0556fae3 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 13 Jan 2023 11:28:53 +0100 Subject: [PATCH] fix broken VILLASfpga node-type Signed-off-by: Steffen Vogel --- lib/nodes/fpga.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/nodes/fpga.cpp b/lib/nodes/fpga.cpp index 0f8c08ee1..cc3f8c006 100644 --- a/lib/nodes/fpga.cpp +++ b/lib/nodes/fpga.cpp @@ -10,6 +10,8 @@ #include #include #include +#include + #include #include @@ -31,7 +33,7 @@ using namespace villas::fpga; using namespace villas::utils; /* Global state */ -static fpga::Card::List cards; +static std::list> cards; static std::map dmaMap; static std::shared_ptr pciDevices; @@ -112,7 +114,7 @@ int FpgaNode::prepare() { auto it = cardName.empty() ? cards.begin() - : std::find_if(cards.begin(), cards.end(), [this](const fpga::Card::Ptr &c) { + : std::find_if(cards.begin(), cards.end(), [this](std::shared_ptr c) { return c->name == cardName; });