Skip to content

Commit

Permalink
Start timeout counters after reset is complete.
Browse files Browse the repository at this point in the history
  • Loading branch information
bweir committed Feb 8, 2016
1 parent 14c60da commit 89417cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/propellerloader/propellerloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ void PropellerLoader::prepare_entry()
// the Propeller firmware only does 32kB EEPROMs
// and this transaction is handled entirely by the firmware.

session->reset();

totalTimeout.start(timeout_payload);
handshakeTimeout.start(session->calculateTimeout(request.size()));
elapsedTimer.start();
resetTimer.start(session->resetPeriod());

session->reset();
elapsedTimer.start();
}

void PropellerLoader::handshake_read()
Expand Down

0 comments on commit 89417cd

Please sign in to comment.