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");
#if HW_HELLEN && EFI_PROD_CODE
// on mega-module we manage SD card power supply
while (!getHellenBoardEnabled()) {
// wait until board enables peripheral
chThdSleepMilliseconds(100);
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
efiPrintf(" *** turning board ON to power SD card ***");
hellenEnableEn();
break;
}
}
chThdSleepMilliseconds(300);
// on mega-module we manage SD card power supply
while (!getHellenBoardEnabled()) {
// wait until board enables peripheral
chThdSleepMilliseconds(100);
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
efiPrintf(" *** turning board ON to power SD card ***");
hellenEnableEn();
break;
}
}
chThdSleepMilliseconds(300);
#endif
if (mountMmc()) {