Skip to content

Commit a734d0d

Browse files
committed
typo in the defines
1 parent 8ce92e0 commit a734d0d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/current_sense/hardware_specific/esp32/esp32_adc_driver.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define SIMPLEFOC_ADC_RES 12
88

99

10-
#ifdef CONFIG_IDF_TARGET_ESP32 // if esp32 variant
10+
#if CONFIG_IDF_TARGET_ESP32 // if esp32 variant
1111

1212
#include "soc/sens_reg.h"
1313

@@ -73,7 +73,7 @@ uint16_t IRAM_ATTR adcRead(uint8_t pin)
7373
return value;
7474
}
7575

76-
#elif (defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32S3)) // if esp32 s2 or s3 variants
76+
#elif CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 // if esp32 s2 or s3 variants
7777

7878
#include "soc/sens_reg.h"
7979

@@ -165,7 +165,7 @@ bool IRAM_ATTR adcInit(uint8_t pin){
165165
analogSetPinAttenuation(pin, SIMPLEFOC_ADC_ATTEN);
166166
analogRead(pin);
167167

168-
#ifdef CONFIG_IDF_TARGET_ESP32 // if esp32 variant
168+
#if CONFIG_IDF_TARGET_ESP32 // if esp32 variant
169169
__configFastADCs();
170170
#endif
171171

src/current_sense/hardware_specific/esp32/esp32_adc_driver.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef SIMPLEFOC_ESP32_HAL_ADC_DRIVER_H_
22
#define SIMPLEFOC_ESP32_HAL_ADC_DRIVER_H_
33

4-
#if defined(ESP_H) && defined(ARDUINO_ARCH_ESP32) && defined(SOC_MCPWM_SUPPORTED) && !defined(SIMPLEFOC_ESP32_USELEDC)
4+
#if defined(ESP_H) && defined(ARDUINO_ARCH_ESP32)
55

66
/**
77
* Get ADC value for pin

0 commit comments

Comments
 (0)