Skip to content

Commit

Permalink
Merge branch 'master' into orbit
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Sep 6, 2024
2 parents 3af01e6 + b995546 commit b21fbe3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions VortexEngine/src/Menus/MenuList/EditorConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b21fbe3

Please sign in to comment.