kopia lustrzana https://github.com/espressif/esp-idf
timer: fix unit test regression
rodzic
04b36c1c2c
commit
56e617d747
|
@ -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");
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue