Remove all debugging printouts to stdout

This commit is contained in:
Paul Hollinsky
2018-10-30 15:02:01 -04:00
parent ccd26a3637
commit 92d98f8bd5
16 changed files with 79 additions and 46 deletions
+3 -1
View File
@@ -9,6 +9,7 @@
#include "icsneo/device/neodevice.h"
#include "icsneo/communication/icommunication.h"
#include "icsneo/third-party/concurrentqueue/blockingconcurrentqueue.h"
#include "icsneo/api/errormanager.h"
namespace icsneo {
@@ -18,7 +19,7 @@ public:
static std::vector<neodevice_t> FindByProduct(int product);
static bool IsHandleValid(neodevice_handle_t handle);
FTDI(neodevice_t& forDevice);
FTDI(device_errorhandler_t err, neodevice_t& forDevice);
~FTDI() { close(); }
bool open();
bool close();
@@ -43,6 +44,7 @@ private:
bool openable; // Set to false in the constructor if the object has not been found in searchResultDevices
neodevice_t& device;
device_errorhandler_t err;
FTDIDevice ftdiDevice;
};
+3 -1
View File
@@ -3,6 +3,7 @@
#include "icsneo/communication/icommunication.h"
#include "icsneo/device/neodevice.h"
#include "icsneo/api/errormanager.h"
#include <chrono>
#include <stdint.h>
@@ -10,7 +11,7 @@ namespace icsneo {
class STM32 : public ICommunication {
public:
STM32(neodevice_t& forDevice) : device(forDevice) {}
STM32(device_errorhandler_t err, neodevice_t& forDevice) : device(forDevice), err(err) {}
static std::vector<neodevice_t> FindByProduct(int product);
bool open();
@@ -19,6 +20,7 @@ public:
private:
neodevice_t& device;
device_errorhandler_t err;
int fd = -1;
static constexpr neodevice_handle_t HANDLE_OFFSET = 10;