Skip to content

Commit b86e6a3

Browse files
committed
Attempt to show i2c_adapter_nr instead of hardcoded value for bus
1 parent b1c0007 commit b86e6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sensors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ cJSON *detect_sensors() {
10891089
{
10901090
cJSON *j_inner = cJSON_CreateObject();
10911091
cJSON_AddItemToObject(ctx.j_sensor, "control", j_inner);
1092-
ADD_PARAM_NUM("bus", 0);
1092+
ADD_PARAM_NUM("bus", i2c_adapter_nr);
10931093
ADD_PARAM("type", ctx.control);
10941094
if (ctx.addr)
10951095
ADD_PARAM_FMT("addr", "0x%x", ctx.addr);

0 commit comments

Comments
 (0)