mirror of https://github.com/arendst/Tasmota.git
Final fix
This commit is contained in:
parent
733b9254a5
commit
7216db339e
|
@ -324,14 +324,16 @@ int32_t analogAttach(uint32_t pin, bool output_invert) { // returns ledc chan
|
||||||
}
|
}
|
||||||
|
|
||||||
void analogDetach(void) {
|
void analogDetach(void) {
|
||||||
#if ESP_IDF_VERSION_MAJOR < 5
|
|
||||||
for (uint32_t pin = 0; pin < SOC_GPIO_PIN_COUNT; pin++) {
|
for (uint32_t pin = 0; pin < SOC_GPIO_PIN_COUNT; pin++) {
|
||||||
if (pin_to_channel[pin] > 0) {
|
if (pin_to_channel[pin] > 0) {
|
||||||
|
#if ESP_IDF_VERSION_MAJOR < 5
|
||||||
ledcDetachPin(pin);
|
ledcDetachPin(pin);
|
||||||
}
|
#else
|
||||||
}
|
ledcDetach(pin);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
extern "C" uint32_t ledcReadFreq2(uint8_t chan) {
|
extern "C" uint32_t ledcReadFreq2(uint8_t chan) {
|
||||||
// extern "C" uint32_t __wrap_ledcReadFreq(uint8_t chan) {
|
// extern "C" uint32_t __wrap_ledcReadFreq(uint8_t chan) {
|
||||||
|
|
Loading…
Reference in New Issue