diff --git a/src/NovelecProtocol.cpp b/src/NovelecProtocol.cpp index b7f9d713322f551e143636a74a376e0695ece4d0..ba1b9c716aa0671ff4e604627d71fbc88d9f7d5e 100644 --- a/src/NovelecProtocol.cpp +++ b/src/NovelecProtocol.cpp @@ -163,7 +163,7 @@ std::string NovelecProtocol::get_value (void) { std::stringstream cmd_to_send; std::string tmp("no data"); -std::string value("no data"); +std::string value("-1"); short cmd_num = 13; //- default value for DEBUG !!! //- first get mode @@ -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; 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 value = check_and_extract_data(tmp, cmd_num);