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
+1 -1
View File
@@ -58,7 +58,7 @@ bool FTDI::GetDeviceForHandle(neodevice_handle_t handle, FTDIDevice& device) {
return false;
}
FTDI::FTDI(neodevice_t& forDevice) : device(forDevice) {
FTDI::FTDI(device_errorhandler_t err, neodevice_t& forDevice) : device(forDevice), err(err) {
openable = GetDeviceForHandle(forDevice.handle, ftdiDevice);
}
+3 -2
View File
@@ -195,7 +195,8 @@ bool STM32::open() {
ss << "/dev/ttyACM" << (int)(device.handle - HANDLE_OFFSET);
fd = ::open(ss.str().c_str(), O_RDWR | O_NOCTTY | O_SYNC);
if(!isOpen()) {
std::cout << "Open of " << ss.str().c_str() << " failed with " << strerror(errno) << ' ';
//std::cout << "Open of " << ss.str().c_str() << " failed with " << strerror(errno) << ' ';
err(APIError::DriverFailedToOpen);
return false;
}
@@ -276,6 +277,6 @@ void STM32::writeTask() {
const ssize_t writeSize = (ssize_t)writeOp.bytes.size();
ssize_t actualWritten = ::write(fd, writeOp.bytes.data(), writeSize);
if(actualWritten != writeSize)
std::cout << "Failure to write " << writeSize << " bytes, wrote " << actualWritten << std::endl;
err(APIError::FailedToWrite);
}
}