Skip to content

Commit c883b35

Browse files
authored
Merge pull request #25 from jeecha/master
Change timer clock source to default for ESP32-C6 compatibility
2 parents ee2bcb4 + d9c6635 commit c883b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esphome/components/MhiAcCtrl/MHI-AC-Ctrl-core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ InitError init(const Config& config) {
603603

604604
// Set up timer
605605
gptimer_config_t timer_config = {
606-
.clk_src = GPTIMER_CLK_SRC_APB,
606+
.clk_src = GPTIMER_CLK_SRC_DEFAULT,
607607
.direction = GPTIMER_COUNT_UP,
608608
.resolution_hz = 1000000, // Plenty of resolution to encode a rough 20ms ;)
609609
};

0 commit comments

Comments
 (0)