From 91babd44dcdc27f2254b1db476f583e44c0d9c4c Mon Sep 17 00:00:00 2001 From: arbee Date: Wed, 1 Dec 2021 19:31:08 -0500 Subject: spi_sdcard: fix CMD8 response for SDV2/SDHC. [R. Belmont] --- src/devices/machine/spi_sdcard.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/devices/machine/spi_sdcard.cpp b/src/devices/machine/spi_sdcard.cpp index 588727d83d4..d238317c789 100644 --- a/src/devices/machine/spi_sdcard.cpp +++ b/src/devices/machine/spi_sdcard.cpp @@ -245,11 +245,11 @@ void spi_sdcard_device::do_command() break; case 8: // CMD8 - SEND_IF_COND (SD v2 only) - m_data[0] = 0; // 0x01; - m_data[1] = m_cmd[1]; // 0; - m_data[2] = m_cmd[2]; // 0; - m_data[3] = m_cmd[3]; // 0x01; - m_data[4] = m_cmd[4]; // 0xaa; + m_data[0] = 0x01; + m_data[1] = 0; + m_data[2] = 0; + m_data[3] = 0x01; + m_data[4] = 0xaa; send_data(5, SD_STATE_IDLE); break; -- cgit v1.2.3