From 3e02b5d610f73810a41d40574532290f6eb1795e Mon Sep 17 00:00:00 2001 From: Petr Kubanek Date: Tue, 11 Jun 2024 15:30:22 +0200 Subject: [PATCH] Changes in newFPGA interface --- src/vmscli.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vmscli.cpp b/src/vmscli.cpp index 6e4c4eb..2d340f6 100644 --- a/src/vmscli.cpp +++ b/src/vmscli.cpp @@ -47,7 +47,7 @@ class VMScli : public SimpleFPGACliApp { int record(command_vec cmds); protected: - virtual SimpleFPGA* newFPGA(const char* dir) override; + virtual SimpleFPGA* newFPGA(const char* dir, bool& fpga_singleton) override; private: std::string _subsystem = ""; @@ -145,10 +145,11 @@ int VMScli::record(command_vec cmds) { return 0; } -SimpleFPGA* VMScli::newFPGA(const char* dir) { +SimpleFPGA* VMScli::newFPGA(const char* dir, bool& fpga_singleton) { _settings = SettingReader::instance().loadVMSApplicationSettings(_subsystem); SPDLOG_INFO("Creating FPGA"); FPGA::instance().populate(&_settings); + fpga_singleton = true; return &FPGA::instance(); }