diff --git a/firmware/hw_layer/io_pins.cpp b/firmware/hw_layer/io_pins.cpp index 5c33c993d6..50130968e8 100644 --- a/firmware/hw_layer/io_pins.cpp +++ b/firmware/hw_layer/io_pins.cpp @@ -90,10 +90,11 @@ iomode_t getInputMode(pin_input_mode_e mode) { } } +#if HAL_USE_ICU void efiIcuStart(ICUDriver *icup, const ICUConfig *config) { efiAssertVoid((icup->state == ICU_STOP) || (icup->state == ICU_READY), "input already used?"); icuStart(icup, config); } - +#endif diff --git a/firmware/hw_layer/io_pins.h b/firmware/hw_layer/io_pins.h index d982777259..f128fbd351 100644 --- a/firmware/hw_layer/io_pins.h +++ b/firmware/hw_layer/io_pins.h @@ -58,7 +58,9 @@ void efiSetPadMode(const char *msg, brain_pin_e pin, iomode_t mode); bool efiReadPin(brain_pin_e pin); iomode_t getInputMode(pin_input_mode_e mode); +#if HAL_USE_ICU void efiIcuStart(ICUDriver *icup, const ICUConfig *config); +#endif /* HAL_USE_ICU */ #endif /* EFI_GPIO_HARDWARE */