From 9878a5ab5883f2b3112c1f67ab392538afd7520f Mon Sep 17 00:00:00 2001 From: Moonglow Date: Thu, 20 May 2021 14:09:10 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Toshiba=20FlashAir=20(SDCA?= =?UTF-8?q?RD=5FCOMMANDS=5FSPLIT)=20(#21944)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/sd/Sd2Card.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Marlin/src/sd/Sd2Card.cpp b/Marlin/src/sd/Sd2Card.cpp index 3e714fe9fe..a81932d494 100644 --- a/Marlin/src/sd/Sd2Card.cpp +++ b/Marlin/src/sd/Sd2Card.cpp @@ -89,6 +89,11 @@ // Send command and return error code. Return zero for OK uint8_t DiskIODriver_SPI_SD::cardCommand(const uint8_t cmd, const uint32_t arg) { + + #if ENABLED(SDCARD_COMMANDS_SPLIT) + if (cmd != CMD12) chipDeselect(); + #endif + // Select card chipSelect();