Skip to content

Commit

Permalink
Fix GalaxyCore detection
Browse files Browse the repository at this point in the history
  • Loading branch information
dimerr committed Jun 14, 2022
1 parent dc9017e commit 7922422
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,8 @@ static int detect_galaxycore_sensor(sensor_ctx_t *ctx, int fd,
return false;
int res = prod_msb << 8 | prod_lsb;

if (!res)
return false;

switch (res) {
case 0x2053:
case 0x4653:
sprintf(ctx->sensor_id, "GC%04x", res);
return true;
Expand Down

0 comments on commit 7922422

Please sign in to comment.