Skip to content

Commit

Permalink
fix to editor protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Sep 6, 2024
1 parent 846c248 commit b995546
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 b995546

Please sign in to comment.