Output pin init/deinit needs a linked list #1803

This commit is contained in:
rusefillc 2020-11-05 18:42:45 -05:00
parent 111b017442
commit cbb00a1a85
1 changed files with 2 additions and 2 deletions

View File

@ -78,10 +78,10 @@ bool RegisteredOutputPin::isPinConfigurationChanged() {
void RegisteredOutputPin::init() {
#if EFI_PROD_CODE
brain_pin_e newPin = *(brain_pin_e *) ((void *) (&((char*) engineConfiguration)[pinOffset]));
pin_output_mode_e newMode = *(pin_output_mode_e *) ((void *) (&((char*) engineConfiguration)[pinModeOffset]));
pin_output_mode_e *newMode = (pin_output_mode_e *) ((void *) (&((char*) engineConfiguration)[pinModeOffset]));
if (isPinConfigurationChanged()) {
this->initPin(name, newPin, &newMode);
this->initPin(name, newPin, newMode);
}
#endif // EFI_PROD_CODE
}