fixed code
This commit is contained in:
@@ -1256,9 +1256,14 @@ esp_err_t camera_init(const camera_config_t* config)
|
||||
vsync_intr_disable();
|
||||
err = gpio_install_isr_service(ESP_INTR_FLAG_LEVEL1 | ESP_INTR_FLAG_IRAM);
|
||||
if (err != ESP_OK) {
|
||||
if (err != ESP_ERR_INVALID_STATE) {
|
||||
ESP_LOGE(TAG, "gpio_install_isr_service failed (%x)", err);
|
||||
goto fail;
|
||||
}
|
||||
else {
|
||||
ESP_LOGW(TAG, "gpio_install_isr_service already installed");
|
||||
}
|
||||
}
|
||||
err = gpio_isr_handler_add(s_state->config.pin_vsync, &vsync_isr, NULL);
|
||||
if (err != ESP_OK) {
|
||||
ESP_LOGE(TAG, "vsync_isr_handler_add failed (%x)", err);
|
||||
|
||||
@@ -43,9 +43,9 @@ static uint8_t ESP_SLAVE_ADDR = 0x3c;
|
||||
#include "twi.h"
|
||||
#endif
|
||||
|
||||
int SCCB_Init(int pin_sda, int pin_scl
|
||||
int SCCB_Init(int pin_sda, int pin_scl)
|
||||
{
|
||||
ESP_LOGI(TAG, "pin_sda %d pin_scl %d \n", pin_sda, pin_scl);
|
||||
ESP_LOGI(TAG, "pin_sda %d pin_scl %d\n", pin_sda, pin_scl);
|
||||
#ifdef CONFIG_SCCB_HARDWARE_I2C
|
||||
//log_i("SCCB_Init start");
|
||||
i2c_config_t conf;
|
||||
|
||||
Reference in New Issue
Block a user