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");
|
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()) {
|
||||||
|
|
Loading…
Reference in New Issue