From b9955461a8421918a4b736538f984d8336b84aa0 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 6 Sep 2024 01:27:34 -0700 Subject: [PATCH] fix to editor protocol --- VortexEngine/src/Menus/MenuList/EditorConnection.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/VortexEngine/src/Menus/MenuList/EditorConnection.cpp b/VortexEngine/src/Menus/MenuList/EditorConnection.cpp index 9ce698e89a..492ea70198 100644 --- a/VortexEngine/src/Menus/MenuList/EditorConnection.cpp +++ b/VortexEngine/src/Menus/MenuList/EditorConnection.cpp @@ -255,11 +255,9 @@ Menu::MenuAction EditorConnection::run() case STATE_PUSH_EACH_MODE_RECEIVE: // receive the modes into the receive buffer if (receiveMode()) { - if (Modes::numModes() < m_numModesToReceive) { - // clear the receive buffer and ack the mode, continue receiving - m_receiveBuffer.clear(); - SerialComs::write(EDITOR_VERB_PUSH_EACH_MODE_ACK); - } else { + m_receiveBuffer.clear(); + SerialComs::write(EDITOR_VERB_PUSH_EACH_MODE_ACK); + if (Modes::numModes() >= m_numModesToReceive) { // success modes were received send the done m_state = STATE_PUSH_EACH_MODE_DONE; }