From 054375c838ef5e2c505c9e0d9c032112bde8de21 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sun, 27 Aug 2023 13:30:02 -0400 Subject: [PATCH] bootloader --- firmware/hw_layer/ports/stm32/stm32_adc_v4.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/hw_layer/ports/stm32/stm32_adc_v4.cpp b/firmware/hw_layer/ports/stm32/stm32_adc_v4.cpp index 980920f972..01287e3974 100644 --- a/firmware/hw_layer/ports/stm32/stm32_adc_v4.cpp +++ b/firmware/hw_layer/ports/stm32/stm32_adc_v4.cpp @@ -7,6 +7,9 @@ */ #include "pch.h" + +#if HAL_USE_ADC + #include "mpu_util.h" #include "map_averaging.h" @@ -185,3 +188,5 @@ adcsample_t getFastAdc(FastAdcToken token) { return fastSampleBuffer[token]; } + +#endif // HAL_USE_ADC