Merge branch 'bugfix/uart_intr_config' into 'master'

uart_intr_config should return ESP_OK on success

Github PR #170 https://github.com/espressif/esp-idf/pull/170

See merge request !339
This commit is contained in:
Angus Gratton 2016-12-29 05:36:26 +08:00
commit 1c08cf2f79

View file

@ -464,7 +464,7 @@ esp_err_t uart_intr_config(uart_port_t uart_num, const uart_intr_config_t *intr_
}
UART[uart_num]->int_ena.val = intr_conf->intr_enable_mask;
UART_EXIT_CRITICAL(&uart_spinlock[uart_num]);
return ESP_FAIL;
return ESP_OK;
}
//internal isr handler for default driver code.