Skip to content

Commit

Permalink
Merge pull request #247 from xyan264/gen5-temp-fix
Browse files Browse the repository at this point in the history
Fix 'temp' command for GEN5 device
  • Loading branch information
xyan264 authored Jan 25, 2021
2 parents a6c9596 + fbc18a6 commit 136c9cb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/switchtec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,11 +1396,6 @@ float switchtec_die_temp(struct switchtec_dev *dev)
uint32_t sub_cmd_id;
uint32_t temp;

if (!switchtec_is_gen3(dev) && !switchtec_is_gen4(dev)) {
errno = ENOTSUP;
return -100.0;
}

if (switchtec_is_gen3(dev)) {
sub_cmd_id = MRPC_DIETEMP_SET_MEAS;
ret = switchtec_cmd(dev, MRPC_DIETEMP, &sub_cmd_id,
Expand Down

0 comments on commit 136c9cb

Please sign in to comment.