Skip to content
Snippets Groups Projects
Commit d2c8610c authored by Daniel van der Schuur's avatar Daniel van der Schuur
Browse files

Merge branch 'master' into L2SDP-534

parents bdff6995 d893b0a9
No related branches found
No related tags found
1 merge request!36Resolve L2SDP-534
Pipeline #21300 passed
...@@ -61,7 +61,7 @@ extern int debug; ...@@ -61,7 +61,7 @@ extern int debug;
Periph_fpga::Periph_fpga(uint global_nr, string ipaddr, uint n_beamsets): Periph_fpga::Periph_fpga(uint global_nr, string ipaddr, uint n_beamsets):
GlobalNr(global_nr), GlobalNr(global_nr),
nBeamsets(n_beamsets), nBeamsets(n_beamsets),
Masked(false), Masked(true),
Online(false), Online(false),
my_current_design_name("-"), my_current_design_name("-"),
my_current_hw_version(0), my_current_hw_version(0),
...@@ -137,7 +137,7 @@ bool Periph_fpga::read(TermOutput& termout, const string addr, ...@@ -137,7 +137,7 @@ bool Periph_fpga::read(TermOutput& termout, const string addr,
return false; return false;
} }
if (!Online) { // Selected but not possible if (!Online) { // Selected but not possible
cout << "read() error node " << GlobalNr << " not enabled or not online" << endl; cout << "read() error node " << GlobalNr << " not online" << endl;
return false; return false;
} }
if (mmap->empty()) { if (mmap->empty()) {
...@@ -377,7 +377,7 @@ bool Periph_fpga::write(TermOutput& termout, const string addr, const string typ ...@@ -377,7 +377,7 @@ bool Periph_fpga::write(TermOutput& termout, const string addr, const string typ
return false; return false;
} }
if (!Online) { // Selected but not possible if (!Online) { // Selected but not possible
cout << "write() error node " << GlobalNr << " not enabled or not online" << endl; cout << "write() error node " << GlobalNr << " not online" << endl;
return false; return false;
} }
if (mmap->empty()) { if (mmap->empty()) {
...@@ -748,7 +748,6 @@ bool Periph_fpga::read_system_info(TermOutput& termout) ...@@ -748,7 +748,6 @@ bool Periph_fpga::read_system_info(TermOutput& termout)
} }
cout << "node " << GlobalNr << " no response" << endl; cout << "node " << GlobalNr << " no response" << endl;
Online = false; Online = false;
Masked = false;
mmap->clear(); mmap->clear();
return false; return false;
} }
...@@ -761,7 +760,6 @@ bool Periph_fpga::read_system_info(TermOutput& termout) ...@@ -761,7 +760,6 @@ bool Periph_fpga::read_system_info(TermOutput& termout)
cout << "new mmap for node " << GlobalNr << endl; cout << "new mmap for node " << GlobalNr << endl;
mmap->print_screen(); mmap->print_screen();
Online = true; Online = true;
Masked = true;
my_current_design_name = read_design_name(); my_current_design_name = read_design_name();
cout << "node " << GlobalNr << " now active design_name = " << my_current_design_name << endl; cout << "node " << GlobalNr << " now active design_name = " << my_current_design_name << endl;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment