Skip to content

Commit

Permalink
Merge pull request #106 from markusressel/bugfix/#102_scsi_sensors
Browse files Browse the repository at this point in the history
added scsi identifier
  • Loading branch information
markusressel authored Apr 4, 2022
2 parents 3f644ad + 623e781 commit 479e814
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/hwmon/hwmon.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const (
BusTypeVirtual = 4
BusTypeAcpi = 5
BusTypeHid = 6
BusTypeScsi = 8
)

type HwMonController struct {
Expand Down Expand Up @@ -266,6 +267,8 @@ func computeIdentifier(chip gosensors.Chip) (name string) {
identifier = fmt.Sprintf("%s-acpi-%d", identifier, chip.Bus.Nr)
case BusTypeHid:
identifier = fmt.Sprintf("%s-hid-%d-%d", identifier, chip.Bus.Nr, chip.Addr)
case BusTypeScsi:
identifier = fmt.Sprintf("%s-scsi-%d-%d", identifier, chip.Bus.Nr, chip.Addr)
}

return identifier
Expand Down

0 comments on commit 479e814

Please sign in to comment.