give flexibility to disable SD card logging

only:uaefi
This commit is contained in:
rusefillc 2024-09-19 16:55:14 -04:00
parent a37256ce38
commit b7d479f7e4
4 changed files with 4 additions and 7 deletions

View File

@ -103,7 +103,8 @@ void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration
void setBoardConfigOverrides() {
setHellenVbatt();
setHellenSdCardSpi1();
setHellenSdCardSpi1Hardware();
engineConfiguration->isSdCardEnabled = true;
setDefaultHellenAtPullUps();

View File

@ -113,7 +113,7 @@ void hellenBoardStandBy() {
extern OutputPin accelerometerChipSelect;
void hellenMegaSdWithAccelerometer() {
setHellenSdCardSpi1();
setHellenSdCardSpi1Hardware();
// weird order of operations? i guess it does not really matter
hellenMegaAccelerometerPreInitCS2Pin();
}

View File

@ -80,6 +80,7 @@ void setBoardDefaultConfiguration() {
setHellenMMbaro();
engineConfiguration->displayLogicLevelsInEngineSniffer = true;
engineConfiguration->isSdCardEnabled = true;
engineConfiguration->globalTriggerAngleOffset = 0;

View File

@ -279,11 +279,6 @@ static void setAccelerometerSpi() {
engineConfiguration->accelerometerCsPin = Gpio::H_SPI1_CS2;
}
static void setHellenSdCardSpi1() {
setHellenSdCardSpi1Hardware();
engineConfiguration->isSdCardEnabled = true;
}
static void setHellen64SdCardSpi() {
engineConfiguration->isSdCardEnabled = true;
engineConfiguration->sdCardSpiDevice = SPI_DEVICE_3;