Skip to content

Commit

Permalink
sensor: add sc200ai for sigmastar (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorxda authored Jan 5, 2024
1 parent 0f89267 commit 0eecc1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/sensors.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0eecc1d

Please sign in to comment.