better code guard?

This commit is contained in:
rusefillc 2023-05-24 10:00:58 -04:00
parent 91a25bad96
commit 725256d7e3
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
#include "defaults.h"
#include "table_helper.h"
#if EFI_ENGINE_CONTROL
static void setDefaultMultisparkParameters() {
// 1ms spark + 2ms dwell
engineConfiguration->multisparkSparkDuration = 1;
@ -98,3 +99,4 @@ void setDefaultIgnition() {
// IAT correction
setDefaultIatTimingCorrection();
}
#endif // EFI_ENGINE_CONTROL

View File

@ -393,6 +393,7 @@ static void setDefaultEngineNoiseTable() {
* This method should NOT be setting any default pinout
*/
static void setDefaultEngineConfiguration() {
#if EFI_ENGINE_CONTROL
#if (! EFI_UNIT_TEST)
efi::clear(persistentState.persistentConfiguration);
#endif
@ -481,7 +482,6 @@ static void setDefaultEngineConfiguration() {
setLinearCurve(config->alsFuelAdjustmentLoadBins, 2, 10, 1);
setRpmTableBin(config->alsFuelAdjustmentrpmBins);
#if EFI_ENGINE_CONTROL
setDefaultWarmupIdleCorrection();
setLinearCurve(engineConfiguration->map.samplingAngleBins, 800, 7000, 1);