diff --git a/driver/sccb-ng.c b/driver/sccb-ng.c index ddf5746101..50cd28d4a3 100755 --- a/driver/sccb-ng.c +++ b/driver/sccb-ng.c @@ -152,7 +152,7 @@ int SCCB_Use_Port(int i2c_num) return ESP_ERR_INVALID_ARG; } sccb_i2c_port = i2c_num; - + sccb_owns_i2c_port = false; // in this case, camera doesn't own the i2c port return ESP_OK; } diff --git a/driver/sccb.c b/driver/sccb.c index 63bddac957..034f795aaf 100755 --- a/driver/sccb.c +++ b/driver/sccb.c @@ -81,6 +81,7 @@ int SCCB_Use_Port(int i2c_num) { // sccb use an already initialized I2C port return ESP_ERR_INVALID_ARG; } sccb_i2c_port = i2c_num; + sccb_owns_i2c_port = false; // in this case, camera doesn't own the i2c port return ESP_OK; }