alwaysWriteSdCard #6703

only:uaefi
This commit is contained in:
Andrey 2024-07-12 17:24:57 -04:00
parent 3ba1e664a3
commit 2d9601bd7e
3 changed files with 3 additions and 2 deletions

View File

@ -413,7 +413,7 @@ static bool mountMmc() {
#if HAL_USE_USB_MSD
// Wait for the USB stack to wake up, or a 15 second timeout, whichever occurs first
msg_t usbResult = usbConnectedSemaphore.wait(TIME_MS2I(15000));
msg_t usbResult = engineConfiguration->alwaysWriteSdCard ? MSG_RESET : usbConnectedSemaphore.wait(TIME_MS2I(15000));
bool hasUsb = usbResult == MSG_OK;

View File

@ -1042,7 +1042,7 @@ end_struct
bit widebandOnSecondBus,"2","1";Select which bus the wideband controller is attached to.
bit fuelClosedLoopCorrectionEnabled;Enables lambda sensor closed loop feedback for fuelling.
bit oddFireEngine;On even fire engines with even number of cylinders we go wasted spark during cranking. Use this setting to disable wasted spark cranking on odd fire engines.
bit unusedFancy3
bit alwaysWriteSdCard;Write SD card log even when powered by USB
bit unusedFancy4
bit yesUnderstandLocking,"yes","no"
bit silentTriggerError;Sometimes we have a performance issue while printing error

View File

@ -4187,6 +4187,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "# and USB not connected for 15 seconds"
field = "#rusEFI connects SD to your PC when powered by USB"
field = "Enable SD Card", isSdCardEnabled
field = "alwaysWriteSdCard", alwaysWriteSdCard
field = "CS Pin", sdCardCsPin @@if_ts_show_sd_pins
field = "SPI", sdCardSpiDevice @@if_ts_show_sd_pins
field = "SD logger rate", sdCardLogFrequency