Skip to content
Snippets Groups Projects
Commit e5e47efc authored by Alessio Igor Bogani's avatar Alessio Igor Bogani
Browse files

Waiting that device comes up

parent 958bf220
No related branches found
No related tags found
No related merge requests found
......@@ -249,6 +249,12 @@ void Agilent4uhv::init_device()
attr_Model_read[0] = new char[MAX_DEVSTRING_LENGTH];
attr_SerialNumber_read[0] = new char[MAX_DEVSTRING_LENGTH];
// Waiting the device
int retries = 0;
while(get_state2() == 9 && retries++ < 5) {
sleep(1);
}
/* Che if the mBar is pressure unit used */
int pressure_unit;
read_window(600, pressure_unit);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment