🐛 Fix Toshiba FlashAir (SDCARD_COMMANDS_SPLIT) (#21944)

This commit is contained in:
Moonglow 2021-05-20 14:09:10 +03:00 committed by GitHub
parent 29ad42e54e
commit 7da4ed7340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();