mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-22 17:02:25 +00:00
refactor(esp_adc): reformat code with astyle_py
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
#include "esp_adc/adc_cali_scheme.h"
|
||||
#include "adc_cali_interface.h"
|
||||
|
||||
|
||||
/**
|
||||
* This file contains Line Fitting Calibration Scheme for ESP32C2.
|
||||
*
|
||||
@@ -30,7 +29,6 @@
|
||||
* 5. Only build this file, when `ADC_CALI_SCHEME_LINE_FITTING_V2_SUPPORTED == true`
|
||||
*/
|
||||
|
||||
|
||||
// coeff_a is actually a float number
|
||||
// it is scaled to put them into uint32_t so that the headers do not have to be changed
|
||||
static const int coeff_a_scaling = 65536;
|
||||
@@ -43,7 +41,6 @@ typedef struct {
|
||||
uint32_t coeff_b; ///< Offset of ADC-Voltage characteristics
|
||||
} cali_chars_line_fitting_t;
|
||||
|
||||
|
||||
/* ------------------------ Interface Functions --------------------------- */
|
||||
static esp_err_t cali_raw_to_voltage(void *arg, int raw, int *voltage);
|
||||
static esp_err_t check_valid(const adc_cali_line_fitting_config_t *config);
|
||||
@@ -107,7 +104,6 @@ esp_err_t adc_cali_delete_scheme_line_fitting(adc_cali_handle_t handle)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------ Interface Functions --------------------------- */
|
||||
static esp_err_t cali_raw_to_voltage(void *arg, int raw, int *voltage)
|
||||
{
|
||||
|
Reference in New Issue
Block a user