diff options
author | Barattero Laurent <laurent@larueluberlu.net> | 2014-01-19 03:36:32 +0100 |
---|---|---|
committer | Barattero Laurent <laurent@larueluberlu.net> | 2014-01-19 03:36:32 +0100 |
commit | 6ed6128396063cc4d1676d41fb63517eb29162e4 (patch) | |
tree | 7a535914e500f78d54bc3ab1b3e719d8b2c0e041 /src/optmanager.cpp | |
parent | e699bff3118126e2494c57f632a7605b1328c030 (diff) |
minor fix to sendSetSerial:
erasing debug messages and adding to verbose mode.
Diffstat (limited to 'src/optmanager.cpp')
-rw-r--r-- | src/optmanager.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/optmanager.cpp b/src/optmanager.cpp index a8cc039..9ea843f 100644 --- a/src/optmanager.cpp +++ b/src/optmanager.cpp @@ -184,8 +184,16 @@ OptManager::sendGetSerial( std::string port_name) void OptManager::sendSetSerial(uint32_t i_serialNumber, string port) { + uint32_t ser_nb; Ultimate prop(port); - prop.setSerialUlt( i_serialNumber); + ser_nb = prop.setSerialUlt( i_serialNumber); + + if (VERBOSE_AERO) + { + cout << "Serial number 0x" << hex << ser_nb + << " sent" << endl; + } + } /* @@ -394,13 +402,11 @@ OptManager::isValidSerialNumber(string strNb) { std::stringstream ss( strNb); ss >> dec >> i_ser_nb; - cout << i_ser_nb << endl; } else if(isHexNotation( strNb)) { std::stringstream ss( strNb.substr(2)); ss >> hex >> i_ser_nb; - cout << i_ser_nb << endl; } else { |