File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1070,17 +1070,17 @@ int current_i2c_adapter_nr;
10701070 strcpy (ctx -> control , "spi" );
10711071 return spi_detected ;
10721072 }
1073- puts ( "try hard sensor search" );
1073+ // "try sensor search at not standart i2c buses"
10741074
10751075current_i2c_adapter_nr = i2c_adapter_nr ;
10761076
10771077for (int i = 0 ; i <= MAX_i2c_NUMBER ; i ++ ) {
10781078 if (i == current_i2c_adapter_nr ) {
10791079 continue ; // Skip the current value
10801080 }
1081- // printf("Checking adapter: %d\n", i);
1081+
10821082i2c_adapter_nr = i ;
1083- // printf("try i2c_%d \n", i2c_adapter_nr);
1083+
10841084
10851085if (!open_i2c_sensor_fd (i2c_adapter_nr ))
10861086 return NULL ;
@@ -1100,7 +1100,7 @@ if (!open_i2c_sensor_fd(i2c_adapter_nr))
11001100 strcpy (ctx -> control , "spi" );
11011101 return spi_detected ;
11021102 }
1103- puts ( "sensor not detected again1" );
1103+
11041104
11051105
11061106}
You can’t perform that action at this time.
0 commit comments