From 399cd3f5b76dded439b915c46ec2146ca9a58609 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Thu, 9 May 2024 23:03:22 +0300 Subject: [PATCH] ADC: dead --- firmware/hw_layer/adc/adc_inputs.cpp | 5 ----- firmware/hw_layer/adc/adc_inputs.h | 2 -- simulator/simulator/boards.h | 1 - 3 files changed, 8 deletions(-) diff --git a/firmware/hw_layer/adc/adc_inputs.cpp b/firmware/hw_layer/adc/adc_inputs.cpp index 3a9d6edb07..ee6d4ef42b 100644 --- a/firmware/hw_layer/adc/adc_inputs.cpp +++ b/firmware/hw_layer/adc/adc_inputs.cpp @@ -355,11 +355,6 @@ void waitForSlowAdc(uint32_t lastAdcCounter) { } } -int getSlowAdcCounter() { - return slowAdcCounter; -} - - class SlowAdcController : public PeriodicController { public: SlowAdcController() diff --git a/firmware/hw_layer/adc/adc_inputs.h b/firmware/hw_layer/adc/adc_inputs.h index 3782d5f4d2..e4ececd06b 100644 --- a/firmware/hw_layer/adc/adc_inputs.h +++ b/firmware/hw_layer/adc/adc_inputs.h @@ -63,8 +63,6 @@ void initAdcInputs(); // wait until at least 1 slowADC sampling is complete void waitForSlowAdc(uint32_t lastAdcCounter = 0); -// get a number of completed slowADC samples -int getSlowAdcCounter(); void printFullAdcReportIfNeeded(void); int getInternalAdcValue(const char *msg, adc_channel_e index); diff --git a/simulator/simulator/boards.h b/simulator/simulator/boards.h index 3f176298bc..27db168712 100644 --- a/simulator/simulator/boards.h +++ b/simulator/simulator/boards.h @@ -11,7 +11,6 @@ #define ADC_LOGIC_COOLANT 0 int getAdcValue(const char *msg, int channel); -#define getSlowAdcCounter() 0 #define waitForSlowAdc(x) {}