mmc_card: more code formating

This commit is contained in:
Andrey Gusakov 2025-01-12 18:09:06 +03:00 committed by rusefillc
parent bfdae6fde8
commit 2481ce87a3
1 changed files with 12 additions and 12 deletions

View File

@ -507,18 +507,18 @@ static THD_FUNCTION(MMCmonThread, arg) {
chRegSetThreadName("MMC Card Logger"); chRegSetThreadName("MMC Card Logger");
#if HW_HELLEN && EFI_PROD_CODE #if HW_HELLEN && EFI_PROD_CODE
// on mega-module we manage SD card power supply // on mega-module we manage SD card power supply
while (!getHellenBoardEnabled()) { while (!getHellenBoardEnabled()) {
// wait until board enables peripheral // wait until board enables peripheral
chThdSleepMilliseconds(100); chThdSleepMilliseconds(100);
if (getTimeNowS() > 4 && !isIgnVoltage()) { if (getTimeNowS() > 4 && !isIgnVoltage()) {
// looks like vehicle is OFF and we are hooked to USB - turn on peripheral to get Mass Storage Device USB profile // looks like vehicle is OFF and we are hooked to USB - turn on peripheral to get Mass Storage Device USB profile
efiPrintf(" *** turning board ON to power SD card ***"); efiPrintf(" *** turning board ON to power SD card ***");
hellenEnableEn(); hellenEnableEn();
break; break;
} }
} }
chThdSleepMilliseconds(300); chThdSleepMilliseconds(300);
#endif #endif
if (mountMmc()) { if (mountMmc()) {