From 67bd1e616a198abb222d468770cfb14bda83f3f7 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Wed, 24 Jun 2020 21:38:57 -0400 Subject: [PATCH] MultiChannelCommunication: Fix issue where initial open fails --- communication/multichannelcommunication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communication/multichannelcommunication.cpp b/communication/multichannelcommunication.cpp index 033030a..091e927 100644 --- a/communication/multichannelcommunication.cpp +++ b/communication/multichannelcommunication.cpp @@ -98,7 +98,7 @@ void MultiChannelCommunication::hidReadTask() { case PreprocessState::GetData: 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; continue; }