mmc_card: more code formating
This commit is contained in:
parent
bfdae6fde8
commit
2481ce87a3
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue