Skip to content

Commit 07ab640

Browse files
committed
del puts
1 parent ff2d98e commit 07ab640

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sensors.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

10751075
current_i2c_adapter_nr = i2c_adapter_nr;
10761076

10771077
for (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+
10821082
i2c_adapter_nr = i;
1083-
// printf("try i2c_%d \n", i2c_adapter_nr);
1083+
10841084

10851085
if (!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
}

0 commit comments

Comments
 (0)