Skip to content

Commit

Permalink
Bump MMU FW version to 2.0.19 to match/enforce the necessary compatib…
Browse files Browse the repository at this point in the history
…ility level
  • Loading branch information
D.R.racer committed Jul 22, 2022
1 parent 8b00f30 commit 3008cde
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Firmware/mmu2_protocol_logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

namespace MMU2 {

static constexpr uint8_t supportedMmuFWVersionMajor = 2;
static constexpr uint8_t supportedMmuFWVersionMinor = 0;
static constexpr uint8_t supportedMmuFWVersionBuild = 19;

StepStatus ProtocolLogicPartBase::ProcessFINDAReqSent(StepStatus finishedRV, State nextState){
if (auto expmsg = logic->ExpectingMessage(linkLayerTimeout); expmsg != MessageReady)
return expmsg;
Expand Down Expand Up @@ -140,7 +144,7 @@ StepStatus StartSeq::Step() {
SendVersion(0);
} else {
logic->mmuFwVersionMajor = logic->rsp.paramValue;
if (logic->mmuFwVersionMajor != 2) {
if (logic->mmuFwVersionMajor != supportedMmuFWVersionMajor) {
return VersionMismatch;
}
logic->dataTO.Reset(); // got meaningful response from the MMU, stop data layer timeout tracking
Expand All @@ -153,7 +157,7 @@ StepStatus StartSeq::Step() {
SendVersion(1);
} else {
logic->mmuFwVersionMinor = logic->rsp.paramValue;
if (logic->mmuFwVersionMinor != 0) {
if (logic->mmuFwVersionMinor != supportedMmuFWVersionMinor) {
return VersionMismatch;
}
SendVersion(2);
Expand All @@ -165,7 +169,7 @@ StepStatus StartSeq::Step() {
SendVersion(2);
} else {
logic->mmuFwVersionBuild = logic->rsp.paramValue;
if (logic->mmuFwVersionBuild < 18) {
if (logic->mmuFwVersionBuild < supportedMmuFWVersionBuild) {
return VersionMismatch;
}
// Start General Interrogation after line up.
Expand Down

0 comments on commit 3008cde

Please sign in to comment.