We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c9da2cc + 10d9c04 commit a19cedeCopy full SHA for a19cede
sensors/sensors_darwin_arm64.go
@@ -96,6 +96,10 @@ func (ta *temperatureArm) getProductNames() []string {
96
ta.ioHIDEventSystemClientSetMatching(uintptr(system), uintptr(ta.sensors))
97
matchingsrvs := ta.ioHIDEventSystemClientCopyServices(uintptr(system))
98
99
+ if matchingsrvs == nil {
100
+ return nil
101
+ }
102
+
103
count := ta.cfArrayGetCount(uintptr(matchingsrvs))
104
105
var i int32
@@ -130,6 +134,10 @@ func (ta *temperatureArm) getThermalValues() []float64 {
130
134
131
135
132
136
137
138
139
140
133
141
142
143
var values []float64
0 commit comments