Undo some test stuff

This commit is contained in:
Pokechu22 2020-08-27 13:57:45 -07:00
parent 58347cc795
commit d958605a1e

View File

@ -550,22 +550,7 @@ void CEXISD::WriteForBlockRead(u8 byte)
// Finish transmitting the current block and then stop // Finish transmitting the current block and then stop
if (state == State::MultipleBlockRead) if (state == State::MultipleBlockRead)
{ {
if (block_state == BlockState::ChecksumWritten || INFO_LOG_FMT(EXPANSIONINTERFACE, "Assuming stop transmission; doing nothing currently");
(block_state == BlockState::Block && block_position == 0))
{
// Done with the current block, finish everything up now.
INFO_LOG_FMT(EXPANSIONINTERFACE, "Assuming stop transmission; done with block read");
state = State::ReadyForCommand;
block_state = BlockState::Nothing;
address = 0;
block_position = 0;
}
else
{
INFO_LOG_FMT(EXPANSIONINTERFACE,
"Assuming stop transmission; changing to single block read to finish");
state = State::SingleBlockRead;
}
// JANK, but I think this will work right // JANK, but I think this will work right
response.push_back(0); // R1 - for later response.push_back(0); // R1 - for later
} }