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/ultimate.cpp | |
parent | e699bff3118126e2494c57f632a7605b1328c030 (diff) |
minor fix to sendSetSerial:
erasing debug messages and adding to verbose mode.
Diffstat (limited to 'src/ultimate.cpp')
-rw-r--r-- | src/ultimate.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/ultimate.cpp b/src/ultimate.cpp index 5efa0f9..63df51e 100644 --- a/src/ultimate.cpp +++ b/src/ultimate.cpp @@ -32,6 +32,8 @@ #include <stdlib.h> #include "ultimate.hpp" +extern bool VERBOSE_AERO; + using namespace std; Ultimate::Ultimate ( string serial_name ): @@ -115,23 +117,20 @@ Ultimate::uploadGlo ( string fileName) * Method: Ultimate :: setSerialUlt * Description: */ - void + uint32_t Ultimate::setSerialUlt(uint32_t serialNumber) { - cout << serialNumber << endl; uint8_t ser_nb[6] = {83,0,0,0,0,0}; ser_nb[4] = (uint8_t)((serialNumber & 0xff000000UL) >> 24); ser_nb[3] = (uint8_t)((serialNumber & 0x00ff0000UL) >> 16); ser_nb[2] = (uint8_t)((serialNumber & 0x0000ff00UL) >> 8); ser_nb[1] = (uint8_t)((serialNumber & 0x000000ffUL) ); - - for (int i = 0; i < 6; i++) - { - cout << (int)ser_nb[i] << endl; - } + ser.serialNumber(ser_nb) ; - exit (EXIT_FAILURE); + return serialNumber; + + //exit (EXIT_FAILURE); } |