mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Added error flag when packetizer and multichannelcommunication fail to read
This commit is contained in:
@@ -49,8 +49,8 @@ void MultiChannelCommunication::readTask() {
|
||||
currentCommandType = (CommandType)usbReadFifo[0];
|
||||
|
||||
if(!CommandTypeIsValid(currentCommandType)) {
|
||||
// TODO Flag error? Device to host bytes discarded
|
||||
//std::cout << "cnv" << std::hex << (int)currentCommandType << ' ' << std::dec;
|
||||
// Device to host bytes discarded
|
||||
EventManager::GetInstance().add(APIEvent(APIEvent::Type::FailedToRead, APIEvent::Severity::Error));
|
||||
usbReadFifo.pop_front();
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user