Skip to content

Commit

Permalink
FreeEmsComms: Fix for rather bad bug where the comms core didn't know…
Browse files Browse the repository at this point in the history
… to watch for ram/flash write responses...
  • Loading branch information
malcom2073 committed Aug 1, 2014
1 parent be67516 commit 1e787ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/freeems/freeemscomms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,14 @@ bool FreeEmsComms::sendPacket(RequestClass request)
m_timeoutMsecs = QDateTime::currentDateTime().currentMSecsSinceEpoch();
m_currentWaitingRequest = request;
m_payloadWaitingForResponse = request.type;
if (request.type == UPDATE_BLOCK_IN_RAM)
{
m_waitingForRamWrite = true;
}
if (request.type == UPDATE_BLOCK_IN_FLASH)
{
m_waitingForFlashWrite = true;
}
if (!sendPacket(request.type,request.args,request.argsize,request.hasLength))
{
return false;
Expand Down

0 comments on commit 1e787ad

Please sign in to comment.