File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -98,18 +98,6 @@ uint8_t SCCB_Probe(void)
98
98
{
99
99
uint8_t slave_addr = 0x0 ;
100
100
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
-
113
101
for (size_t i = 0 ; i < CAMERA_MODEL_MAX ; i ++ ) {
114
102
if (slave_addr == camera_sensor [i ].sccb_addr ) {
115
103
continue ;
@@ -119,7 +107,7 @@ uint8_t SCCB_Probe(void)
119
107
i2c_master_start (cmd );
120
108
i2c_master_write_byte (cmd , ( slave_addr << 1 ) | WRITE_BIT , ACK_CHECK_EN );
121
109
i2c_master_stop (cmd );
122
- esp_err_t ret = i2c_master_cmd_begin (sccb_i2c_port , cmd , 1000 / portTICK_RATE_MS );
110
+ esp_err_t ret = i2c_master_cmd_begin (sccb_i2c_port , cmd , 50 / portTICK_RATE_MS );
123
111
i2c_cmd_link_delete (cmd );
124
112
if ( ret == ESP_OK ) {
125
113
return slave_addr ;
You can’t perform that action at this time.
0 commit comments