Skip to content

Commit 479e814

Browse files
authored
Merge pull request #106 from markusressel/bugfix/#102_scsi_sensors
added scsi identifier
2 parents 3f644ad + 623e781 commit 479e814

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/hwmon/hwmon.go

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const (
1919
BusTypeVirtual = 4
2020
BusTypeAcpi = 5
2121
BusTypeHid = 6
22+
BusTypeScsi = 8
2223
)
2324

2425
type HwMonController struct {
@@ -266,6 +267,8 @@ func computeIdentifier(chip gosensors.Chip) (name string) {
266267
identifier = fmt.Sprintf("%s-acpi-%d", identifier, chip.Bus.Nr)
267268
case BusTypeHid:
268269
identifier = fmt.Sprintf("%s-hid-%d-%d", identifier, chip.Bus.Nr, chip.Addr)
270+
case BusTypeScsi:
271+
identifier = fmt.Sprintf("%s-scsi-%d-%d", identifier, chip.Bus.Nr, chip.Addr)
269272
}
270273

271274
return identifier

0 commit comments

Comments
 (0)