mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
prepare for IDF 5.4 based Arduino (#22793)
This commit is contained in:
parent
76fb95b166
commit
e57b3e8b05
@ -315,6 +315,9 @@ int32_t analogAttach(uint32_t pin, bool output_invert) { // returns ledc chan
|
||||
(ledc_timer_t)timer, // timer_sel
|
||||
0, // duty
|
||||
0, // hpoint
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0)
|
||||
(ledc_sleep_mode_t) 2,
|
||||
#endif
|
||||
{ output_invert ? 1u : 0u },// output_invert
|
||||
};
|
||||
ledc_channel_config(&ledc_channel);
|
||||
|
Loading…
x
Reference in New Issue
Block a user