Skip to content

Commit 2710e44

Browse files
committed
sccb: don't perform an i2c bus scan
1 parent 4ff7f34 commit 2710e44

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

driver/sccb.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,6 @@ uint8_t SCCB_Probe(void)
9898
{
9999
uint8_t slave_addr = 0x0;
100100

101-
for (size_t i = 1; i < 0x80; i++) {
102-
i2c_cmd_handle_t cmd = i2c_cmd_link_create();
103-
i2c_master_start(cmd);
104-
i2c_master_write_byte(cmd, ( i << 1 ) | WRITE_BIT, ACK_CHECK_EN);
105-
i2c_master_stop(cmd);
106-
esp_err_t ret = i2c_master_cmd_begin(sccb_i2c_port, cmd, 1000 / portTICK_RATE_MS);
107-
i2c_cmd_link_delete(cmd);
108-
if( ret == ESP_OK) {
109-
ESP_LOGW(TAG, "Found I2C Device at 0x%02X", i);
110-
}
111-
}
112-
113101
for (size_t i = 0; i < CAMERA_MODEL_MAX; i++) {
114102
if (slave_addr == camera_sensor[i].sccb_addr) {
115103
continue;

0 commit comments

Comments
 (0)