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