diff --git a/src/sensors.c b/src/sensors.c index fb7b605..3d2462e 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -526,7 +526,10 @@ static int detect_smartsens_sensor(sensor_ctx_t *ctx, int fd, res = 0x2232; break; case 0xcb1c: - strcpy(ctx->sensor_id, "SC337H"); + if (strstr(getchipvendor(), VENDOR_SSTAR)) + strcpy(ctx->sensor_id, "SC200AI"); + else + strcpy(ctx->sensor_id, "SC337H"); return true; case 0xcc05: // AKA AUGE diff --git a/src/sensors.h b/src/sensors.h index 222c9f7..aca528b 100644 --- a/src/sensors.h +++ b/src/sensors.h @@ -15,6 +15,7 @@ typedef struct { cJSON *j_params; } sensor_ctx_t; +const char *getchipvendor(); const char *getsensoridentity(); cJSON *detect_sensors(); bool getsensorid(sensor_ctx_t *ctx);