getDigital only works for 4 specific pins. Can it be made to work with generic digital pins? #4861

This commit is contained in:
Andrey 2023-01-03 21:54:28 -05:00
parent 3edc561e56
commit 9db64ada20
1 changed files with 2 additions and 0 deletions

View File

@ -47,9 +47,11 @@ static void deInitOldAnalogInputs() {
}
static void initAuxDigital() {
#if EFI_PROD_CODE
for (size_t i = 0;i<efi::size(engineConfiguration->luaDigitalInputPins);i++) {
efiSetPadMode("Lua Digital", engineConfiguration->luaDigitalInputPins[i], getInputMode(PI_DEFAULT));
}
#endif // EFI_PROD_CODE
}
static void deInitAuxDigital() {