better code guard?
This commit is contained in:
parent
91a25bad96
commit
725256d7e3
|
@ -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
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue