Skip to content
Snippets Groups Projects
Commit 84c2e8c0 authored by Xavier ELATTAOUI's avatar Xavier ELATTAOUI
Browse files

Minor changes (for test): write_read instead of write then read

parent 3def6876
Branches
Tags
No related merge requests found
...@@ -301,8 +301,8 @@ std::string argout("no data"); ...@@ -301,8 +301,8 @@ std::string argout("no data");
//- get data value //- get data value
cmd_to_send << "X" << std::ends; cmd_to_send << "X" << std::ends;
_communication_link->write(cmd_to_send.str()); argout = _communication_link->write_read(cmd_to_send.str());
argout = _communication_link->read(); //XE argout = _communication_link->read();
//- check if device range is overloaded : First char of the prefix ! //- check if device range is overloaded : First char of the prefix !
if(argout[0] == 'O') //- O means overload ! if(argout[0] == 'O') //- O means overload !
...@@ -410,9 +410,9 @@ std::string argout("no data"); ...@@ -410,9 +410,9 @@ std::string argout("no data");
cmd_to_send.str(""); cmd_to_send.str("");
//- get status word //- get status word
cmd_to_send << "U1X" << std::endl; cmd_to_send << "U1X" << std::endl;
_communication_link->write(cmd_to_send.str()); argout = _communication_link->write_read(cmd_to_send.str());
//- DDC devices are to slow to give a response for a write_read cmd //- DDC devices are to slow to give a response for a write_read cmd
argout = _communication_link->read(); //XE argout = _communication_link->read();
return argout; return argout;
} }
...@@ -428,8 +428,8 @@ std::string argout("no data"); ...@@ -428,8 +428,8 @@ std::string argout("no data");
cmd_to_send.str(""); cmd_to_send.str("");
//- get status word //- get status word
cmd_to_send << "U0X" << std::endl; cmd_to_send << "U0X" << std::endl;
_communication_link->write(cmd_to_send.str()); argout = _communication_link->write_read(cmd_to_send.str());
argout = _communication_link->read(); //XE argout = _communication_link->read();
return argout; return argout;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment