Skip to content

Commit

Permalink
treat MMC and SD respone equally (fixes airbus-seclab#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
franzhollerer committed Mar 18, 2024
1 parent f10e21f commit ef30e35
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/SDMMCAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ void SDMMCAnalyzer::ReadCommandBit(CommandReadState *state, DataReadState
state->cmd_crc_cnt++;
return;
case CMD_STOP:
mResults->AddMarker(mClock->GetSampleNumber(),
AnalyzerResults::Stop, mSettings.mCommandChannel);
if (mSettings.mProtocol == PROTOCOL_MMC) {
{
mResults->AddMarker(mClock->GetSampleNumber(),
AnalyzerResults::Stop, mSettings.mCommandChannel);
struct MMCResponse response = SDMMCHelpers::MMCCommandResponse(state->cmdindex);
if (response.mType != MMC_RSP_NONE) {
state->phase = RESP_INIT;
Expand All @@ -234,9 +234,6 @@ void SDMMCAnalyzer::ReadCommandBit(CommandReadState *state, DataReadState
} else {
state->phase = CMD_END;
}
} else {
/* FIXME: implement SD response handling */
state->phase = CMD_END;
}
return;
case RESP_INIT:
Expand Down

0 comments on commit ef30e35

Please sign in to comment.