timer: fix unit test regression

pull/7680/head
morris 2021-09-17 10:45:06 +08:00
rodzic 04b36c1c2c
commit 56e617d747
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -288,8 +288,7 @@ esp_err_t timer_init(timer_group_t group_num, timer_idx_t timer_num, const timer
timer_hal_set_divider(&(p_timer_obj[group_num][timer_num]->hal), config->divider);
timer_hal_set_counter_increase(&(p_timer_obj[group_num][timer_num]->hal), config->counter_dir);
timer_hal_set_alarm_enable(&(p_timer_obj[group_num][timer_num]->hal), config->alarm_en);
// Disable level interrupt by default
timer_hal_set_level_int_enable(&(p_timer_obj[group_num][timer_num]->hal), false);
timer_hal_set_level_int_enable(&(p_timer_obj[group_num][timer_num]->hal), config->intr_type == TIMER_INTR_LEVEL);
if (config->intr_type != TIMER_INTR_LEVEL) {
ESP_LOGW(TIMER_TAG, "only support Level Interrupt, switch to Level Interrupt instead");
}