Skip to content

Commit

Permalink
Changes in newFPGA interface
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubanek committed Jun 11, 2024
1 parent 93eb41b commit 3e02b5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vmscli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 3e02b5d

Please sign in to comment.