Browse Source

🐛 Fix Toshiba FlashAir (SDCARD_COMMANDS_SPLIT) (#21944)

Moonglow 3 years ago
parent
commit
7da4ed7340
No account linked to committer's email address
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      Marlin/src/sd/Sd2Card.cpp

+ 5
- 0
Marlin/src/sd/Sd2Card.cpp View File

@@ -89,6 +89,11 @@
89 89
 
90 90
 // Send command and return error code. Return zero for OK
91 91
 uint8_t DiskIODriver_SPI_SD::cardCommand(const uint8_t cmd, const uint32_t arg) {
92
+
93
+  #if ENABLED(SDCARD_COMMANDS_SPLIT)
94
+    if (cmd != CMD12) chipDeselect();
95
+  #endif
96
+
92 97
   // Select card
93 98
   chipSelect();
94 99
 

Loading…
Cancel
Save