Skip to content

Commit

Permalink
Forgot to update the prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Darryl Masson committed Jun 30, 2021
1 parent 91d39b4 commit 2883c8a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DAQController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int DAQController::Arm(std::shared_ptr<Options>& options){
digi = std::make_shared<f1724>(fLog, fOptions, d.board, 0);
else
digi = std::make_shared<V1724>(fLog, fOptions, d.board, d.vme_address);
if (digi->Init(d.link, d.crate, fOptions))
if (digi->Init(d.link, d.crate))
throw std::runtime_error("Board init failed");
fDigitizers[d.link].emplace_back(digi);
num_boards++;
Expand Down
2 changes: 1 addition & 1 deletion V1724.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class V1724{
V1724(std::shared_ptr<MongoLog>&, std::shared_ptr<Options>&, int, unsigned=0);
virtual ~V1724();

virtual int Init(int, int, std::shared_ptr<Options>&);
virtual int Init(int, int);
virtual int Read(std::unique_ptr<data_packet>&);
virtual int WriteRegister(unsigned int, uint32_t);
virtual unsigned int ReadRegister(unsigned int);
Expand Down
4 changes: 2 additions & 2 deletions f1724.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ f1724::~f1724() {
End();
}

int f1724::Init(int, int, std::shared_ptr<Options>& opts) {
if (opts->GetFaxOptions(fFaxOptions)) {
int f1724::Init(int, int) {
if (fOptions->GetFaxOptions(fFaxOptions)) {
return -1;
}
fGen = std::mt19937_64(fRD());
Expand Down
2 changes: 1 addition & 1 deletion f1724.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public:
f1724(std::shared_ptr<MongoLog>&, std::shared_ptr<Options>&, int, unsigned);
virtual ~f1724();

virtual int Init(int, int, std::shared_ptr<Options>&);
virtual int Init(int, int);
virtual int Read(std::unique_ptr<data_packet>&);
virtual int WriteRegister(unsigned, unsigned);
virtual unsigned ReadRegister(unsigned);
Expand Down

0 comments on commit 2883c8a

Please sign in to comment.