Skip to content

Commit

Permalink
Handle Temperature_Celsius and Temperature_Celsius_X10 SATA attributes
Browse files Browse the repository at this point in the history
... as a device temperature

Fixes #7
  • Loading branch information
anatol committed Sep 29, 2022
1 parent c0b00d9 commit 336d113
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sata.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@ func (d *SataDevice) ReadGenericAttributes() (*GenericAttributes, error) {
for _, attr := range page.Attrs {
switch attr.Name {
case "Airflow_Temperature_Cel":
fallthrough
case "Temperature_Celsius":
fallthrough
case "Temperature_Celsius_X10":
current, _, _, _, err := attr.ParseAsTemperature()
if err != nil {
return nil, err
Expand Down

0 comments on commit 336d113

Please sign in to comment.