Skip to content

Commit

Permalink
typo in the defines
Browse files Browse the repository at this point in the history
  • Loading branch information
askuric committed Jun 22, 2024
1 parent 8ce92e0 commit a734d0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define SIMPLEFOC_ADC_RES 12


#ifdef CONFIG_IDF_TARGET_ESP32 // if esp32 variant
#if CONFIG_IDF_TARGET_ESP32 // if esp32 variant

#include "soc/sens_reg.h"

Expand Down Expand Up @@ -73,7 +73,7 @@ uint16_t IRAM_ATTR adcRead(uint8_t pin)
return value;
}

#elif (defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32S3)) // if esp32 s2 or s3 variants
#elif CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 // if esp32 s2 or s3 variants

#include "soc/sens_reg.h"

Expand Down Expand Up @@ -165,7 +165,7 @@ bool IRAM_ATTR adcInit(uint8_t pin){
analogSetPinAttenuation(pin, SIMPLEFOC_ADC_ATTEN);
analogRead(pin);

#ifdef CONFIG_IDF_TARGET_ESP32 // if esp32 variant
#if CONFIG_IDF_TARGET_ESP32 // if esp32 variant
__configFastADCs();
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef SIMPLEFOC_ESP32_HAL_ADC_DRIVER_H_
#define SIMPLEFOC_ESP32_HAL_ADC_DRIVER_H_

#if defined(ESP_H) && defined(ARDUINO_ARCH_ESP32) && defined(SOC_MCPWM_SUPPORTED) && !defined(SIMPLEFOC_ESP32_USELEDC)
#if defined(ESP_H) && defined(ARDUINO_ARCH_ESP32)

/**
* Get ADC value for pin
Expand Down

0 comments on commit a734d0d

Please sign in to comment.