mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-06 09:58:41 +02:00
MultiChannelCommunication: Fix issue where initial open fails
This commit is contained in:
@@ -98,7 +98,7 @@ void MultiChannelCommunication::hidReadTask() {
|
|||||||
case PreprocessState::GetData:
|
case PreprocessState::GetData:
|
||||||
state = PreprocessState::GetData; // Set state in case we've fallen through, but later need to go around again
|
state = PreprocessState::GetData; // Set state in case we've fallen through, but later need to go around again
|
||||||
|
|
||||||
if(usbReadFifo.size() <= currentReadIndex + currentCommandLength) { // Come back we have more data
|
if(usbReadFifo.size() < currentReadIndex + currentCommandLength) { // Come back when we have more data
|
||||||
readMore = true;
|
readMore = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user