From 565dfa94a81620dda5e22477a9de8b9d2fbb14d9 Mon Sep 17 00:00:00 2001 From: William Kim <73252368+wxkim@users.noreply.github.com> Date: Sun, 15 Sep 2024 16:32:51 -0500 Subject: [PATCH] fixed build errors and incs --- Platform/STM/F4/ADC/adc_stmf4.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Platform/STM/F4/ADC/adc_stmf4.cpp b/Platform/STM/F4/ADC/adc_stmf4.cpp index 6202e1d..205f1e6 100644 --- a/Platform/STM/F4/ADC/adc_stmf4.cpp +++ b/Platform/STM/F4/ADC/adc_stmf4.cpp @@ -12,10 +12,11 @@ #include "../../../Interfaces/iadc.hpp" // dfr custom interface #include "adc_stmf4.hpp" //include header +#include namespace platform { AdcStmF4::AdcStmF4(ADC_HandleTypeDef* hadc, DMA_HandleTypeDef* hdma) - : hdma(hdma), hadc(hadc){ + : hadc(hadc), hdma(hdma){ MX_ADC1_Init(); HAL_ADC_Init(hadc); HAL_DMA_Init(hdma); @@ -50,7 +51,7 @@ namespace platform { if( (adc_buf != nullptr) && (adc_buf->size() < buffer_size) ) { - adc_buf->push_back(convert()); + adc_buf->push_back(ADC_Conversion_Result); } else