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

tests done OK !

parent f59b6d04
No related branches found
No related tags found
No related merge requests found
...@@ -163,7 +163,7 @@ std::string NovelecProtocol::get_value (void) ...@@ -163,7 +163,7 @@ std::string NovelecProtocol::get_value (void)
{ {
std::stringstream cmd_to_send; std::stringstream cmd_to_send;
std::string tmp("no data"); std::string tmp("no data");
std::string value("no data"); std::string value("-1");
short cmd_num = 13; //- default value for DEBUG !!! short cmd_num = 13; //- default value for DEBUG !!!
//- first get mode //- first get mode
...@@ -179,6 +179,7 @@ short cmd_num = 13; //- default value for DEBUG !!! ...@@ -179,6 +179,7 @@ short cmd_num = 13; //- default value for DEBUG !!!
std::cout << "\t\t***WARN : Current mode : \"" << get_mode() << "\" has no value available." << std::endl; std::cout << "\t\t***WARN : Current mode : \"" << get_mode() << "\" has no value available." << std::endl;
cmd_to_send << _devAdd << " READ " << cmd_num << END_OF_LINE << std::endl; cmd_to_send << _devAdd << " READ " << cmd_num << END_OF_LINE << std::endl;
tmp = _communication_link->write_read(cmd_to_send.str());
//- check only the command response //- check only the command response
value = check_and_extract_data(tmp, cmd_num); value = check_and_extract_data(tmp, cmd_num);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment