mirror of https://github.com/rusefi/rusefi.git
EFI_CONFIGURATION_STORAGE
This commit is contained in:
parent
40ec18eeb4
commit
217546b02d
|
@ -341,9 +341,9 @@ void requestBurn() {
|
|||
#if !EFI_UNIT_TEST
|
||||
onBurnRequest();
|
||||
|
||||
#if (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE)
|
||||
#if EFI_CONFIGURATION_STORAGE
|
||||
setNeedToWriteConfiguration();
|
||||
#endif /* (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE) */
|
||||
#endif /* EFI_CONFIGURATION_STORAGE */
|
||||
#endif // !EFI_UNIT_TEST
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,8 @@
|
|||
|
||||
#define EXPECTED_REMAINING_STACK 128
|
||||
|
||||
#define EFI_CONFIGURATION_STORAGE (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE)
|
||||
|
||||
// see also validateStack
|
||||
#define hasLotsOfRemainingStack() (getCurrentRemainingStack() > EXPECTED_REMAINING_STACK)
|
||||
|
||||
|
|
|
@ -212,9 +212,9 @@ static void doPeriodicSlowCallback() {
|
|||
*
|
||||
* todo: allow writing if 2nd bank of flash is used
|
||||
*/
|
||||
#if (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE)
|
||||
#if EFI_CONFIGURATION_STORAGE
|
||||
writeToFlashIfPending();
|
||||
#endif /* (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE) */
|
||||
#endif /* EFI_CONFIGURATION_STORAGE */
|
||||
}
|
||||
#else /* if EFI_SHAFT_POSITION_INPUT */
|
||||
#if (EFI_STORAGE_INT_FLASH == TRUE) || (EFI_STORAGE_MFS == TRUE)
|
||||
|
|
Loading…
Reference in New Issue