refactor onConfigurationChangeAlternatorCallback()

This commit is contained in:
andreika-git 2023-11-10 20:11:25 +02:00 committed by rusefillc
parent 4c558e16b2
commit bb841a061b
3 changed files with 1 additions and 5 deletions

View File

@ -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);
}

View File

@ -22,4 +22,3 @@ public:
void onFastCallback() override;
};
void onConfigurationChangeAlternatorCallback(engine_configuration_s *previousConfiguration);

View File

@ -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);