From 1406c16119d571af7dabd9808b6ed4100aaf73dc Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 1 Apr 2021 16:21:19 -0400 Subject: [PATCH] SD init: document or fix unlock SPI fix #2516 --- firmware/hw_layer/mmc_card.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/hw_layer/mmc_card.cpp b/firmware/hw_layer/mmc_card.cpp index fa1d3b28a7..9fa50b8147 100644 --- a/firmware/hw_layer/mmc_card.cpp +++ b/firmware/hw_layer/mmc_card.cpp @@ -384,7 +384,7 @@ static BaseBlockDevice* initializeMmcBlockDevice() { UNLOCK_SD_SPI; 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(&MMCD1); }