|
|
@ -96,6 +96,10 @@ func (ta *temperatureArm) getProductNames() []string {
|
|
|
|
ta.ioHIDEventSystemClientSetMatching(uintptr(system), uintptr(ta.sensors))
|
|
|
|
ta.ioHIDEventSystemClientSetMatching(uintptr(system), uintptr(ta.sensors))
|
|
|
|
matchingsrvs := ta.ioHIDEventSystemClientCopyServices(uintptr(system))
|
|
|
|
matchingsrvs := ta.ioHIDEventSystemClientCopyServices(uintptr(system))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if matchingsrvs == nil {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
count := ta.cfArrayGetCount(uintptr(matchingsrvs))
|
|
|
|
count := ta.cfArrayGetCount(uintptr(matchingsrvs))
|
|
|
|
|
|
|
|
|
|
|
|
var i int32
|
|
|
|
var i int32
|
|
|
@ -130,6 +134,10 @@ func (ta *temperatureArm) getThermalValues() []float64 {
|
|
|
|
ta.ioHIDEventSystemClientSetMatching(uintptr(system), uintptr(ta.sensors))
|
|
|
|
ta.ioHIDEventSystemClientSetMatching(uintptr(system), uintptr(ta.sensors))
|
|
|
|
matchingsrvs := ta.ioHIDEventSystemClientCopyServices(uintptr(system))
|
|
|
|
matchingsrvs := ta.ioHIDEventSystemClientCopyServices(uintptr(system))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if matchingsrvs == nil {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
count := ta.cfArrayGetCount(uintptr(matchingsrvs))
|
|
|
|
count := ta.cfArrayGetCount(uintptr(matchingsrvs))
|
|
|
|
|
|
|
|
|
|
|
|
var values []float64
|
|
|
|
var values []float64
|
|
|
|