Skip to content

Commit

Permalink
Fix build error for IDF 5.0 (#2703)
Browse files Browse the repository at this point in the history
Re. #2701 call to `timer_ll_trigger_soft_capture` only required for IDF 5.2, as while function signature changed in IDF 5.0 it retains previous behaviour.

Co-authored-by: mikee47 <mike@silyhouse.net>
  • Loading branch information
mikee47 and mikee47 authored Jan 10, 2024
1 parent 5b9c2a7 commit 49c9aa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sming/Arch/Esp32/Components/driver/hw_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ class TimerConfig
timer_ll_get_counter_value(dev, index, &val);
return val;
#else
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0)
timer_ll_trigger_soft_capture(dev, index);
#endif
return timer_ll_get_counter_value(dev, index);
#endif
}
Expand Down

0 comments on commit 49c9aa5

Please sign in to comment.