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
+2 -1
View File
@@ -45,7 +45,8 @@ void MultiChannelCommunication::readTask() {
currentCommandType = (CommandType)usbReadFifo[0];
if(!CommandTypeIsValid(currentCommandType)) {
std::cout << "cnv" << std::hex << (int)currentCommandType << ' ' << std::dec;
// TODO Flag error? Device to host bytes discarded
//std::cout << "cnv" << std::hex << (int)currentCommandType << ' ' << std::dec;
usbReadFifo.pop_front();
continue;
}
+1 -1
View File
@@ -111,7 +111,7 @@ bool Packetizer::input(const std::vector<uint8_t>& inputBytes) {
bytes.pop_front();
} else {
if(gotGoodPackets) // Don't complain unless we've already gotten a good packet, in case we started in the middle of a stream
std::cout << "Dropping packet due to bad checksum" << std::endl;
err(APIError::PacketChecksumError);
bytes.pop_front(); // Drop the first byte so it doesn't get picked up again
}