Skip to content

Commit

Permalink
prepare for IDF 5.4 based Arduino (#22793)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Jan 9, 2025
1 parent 76fb95b commit e57b3e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/libesp32/ESP32-to-ESP8266-compat/src/esp8266toEsp32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e57b3e8

Please sign in to comment.