From 840a968bc8464bf0f8ae03fbdb70b6f02af492e8 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 24 May 2023 00:39:56 -0400 Subject: [PATCH] code guard --- firmware/hw_layer/adc/adc_subscription.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/hw_layer/adc/adc_subscription.cpp b/firmware/hw_layer/adc/adc_subscription.cpp index 635d9f321b..4c34070155 100644 --- a/firmware/hw_layer/adc/adc_subscription.cpp +++ b/firmware/hw_layer/adc/adc_subscription.cpp @@ -109,10 +109,10 @@ TODO: this code is similar to initIfValid, what is the plan? shall we extract he return; } -#if EFI_PROD_CODE +#if EFI_PROD_CODE && HAL_USE_ADC // Release the pin efiSetPadUnused(getAdcChannelBrainPin("adc unsubscribe", entry->Channel)); -#endif // EFI_PROD_CODE +#endif // EFI_PROD_CODE && HAL_USE_ADC sensor.unregister();