From 9db64ada2041675ac306242d96eded8cacb45bfb Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 3 Jan 2023 21:54:28 -0500 Subject: [PATCH] getDigital only works for 4 specific pins. Can it be made to work with generic digital pins? #4861 --- firmware/init/sensor/init_sensors.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/init/sensor/init_sensors.cpp b/firmware/init/sensor/init_sensors.cpp index 465b1971f9..17bb858255 100644 --- a/firmware/init/sensor/init_sensors.cpp +++ b/firmware/init/sensor/init_sensors.cpp @@ -47,9 +47,11 @@ static void deInitOldAnalogInputs() { } static void initAuxDigital() { +#if EFI_PROD_CODE for (size_t i = 0;iluaDigitalInputPins);i++) { efiSetPadMode("Lua Digital", engineConfiguration->luaDigitalInputPins[i], getInputMode(PI_DEFAULT)); } +#endif // EFI_PROD_CODE } static void deInitAuxDigital() {