SD init: document or fix unlock SPI fix #2516

This commit is contained in:
rusefi 2021-04-01 16:21:19 -04:00
parent da64802066
commit 1d9ba89273
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ static BaseBlockDevice* initializeMmcBlockDevice() {
UNLOCK_SD_SPI; UNLOCK_SD_SPI;
return nullptr; return nullptr;
} }
// todo: shall we 'UNLOCK_SD_SPI' here or document why not? // We intentionally never unlock in case of success, we take exclusive access of that spi device for SD use
return reinterpret_cast<BaseBlockDevice*>(&MMCD1); return reinterpret_cast<BaseBlockDevice*>(&MMCD1);
} }