From b8b4c2dce861cac6c20e6e6c3de8d38f54f228ad Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 25 Oct 2025 10:28:01 +0200 Subject: [PATCH] prperly set sccb_owns_i2c_port when camera driver is not the owner of i2c camera port --- driver/sccb-ng.c | 2 +- driver/sccb.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; }