mirror of https://github.com/rusefi/rusefi.git
refactor onConfigurationChangeAlternatorCallback()
This commit is contained in:
parent
4c558e16b2
commit
bb841a061b
|
@ -98,7 +98,7 @@ void setAltPFactor(float p) {
|
|||
showAltInfo();
|
||||
}
|
||||
|
||||
void onConfigurationChangeAlternatorCallback(engine_configuration_s *previousConfiguration) {
|
||||
void AlternatorController::onConfigurationChange(engine_configuration_s const * previousConfiguration) {
|
||||
shouldResetPid = !alternatorPid.isSame(&previousConfiguration->alternatorControl);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,4 +22,3 @@ public:
|
|||
void onFastCallback() override;
|
||||
};
|
||||
|
||||
void onConfigurationChangeAlternatorCallback(engine_configuration_s *previousConfiguration);
|
||||
|
|
|
@ -186,9 +186,6 @@ void incrementGlobalConfigurationVersion(const char * msg) {
|
|||
boardOnConfigurationChange(&activeConfiguration);
|
||||
|
||||
engine->preCalculate();
|
||||
#if EFI_ALTERNATOR_CONTROL
|
||||
onConfigurationChangeAlternatorCallback(&activeConfiguration);
|
||||
#endif /* EFI_ALTERNATOR_CONTROL */
|
||||
|
||||
#if EFI_ELECTRONIC_THROTTLE_BODY
|
||||
onConfigurationChangeElectronicThrottleCallback(&activeConfiguration);
|
||||
|
|
Loading…
Reference in New Issue