Merge branch 'bugfix/i2s_set_pin_valid_gpio' into 'master'

change to GPIO_IS_VALID_OUTPUT_GPIO for data out pin

See merge request !764
This commit is contained in:
Jiang Jiang Jian 2017-10-12 18:21:25 +08:00
commit e0922c9564

View file

@ -568,7 +568,7 @@ esp_err_t i2s_set_pin(i2s_port_t i2s_num, const i2s_pin_config_t *pin)
ESP_LOGE(I2S_TAG, "ws_io_num error");
return ESP_FAIL;
}
if (pin->data_out_num != -1 && !GPIO_IS_VALID_GPIO(pin->data_out_num)) {
if (pin->data_out_num != -1 && !GPIO_IS_VALID_OUTPUT_GPIO(pin->data_out_num)) {
ESP_LOGE(I2S_TAG, "data_out_num error");
return ESP_FAIL;
}