fix: adjust CPU temperature sensors (#266)

This commit is contained in:
Serhiy Mytrovtsiy
2021-01-02 17:19:51 +01:00
parent 9d71c396f1
commit 752a8e9cd0

View File

@@ -240,7 +240,12 @@ public class TemperatureReader: Reader<Double> {
}
public override func read() {
let temperature = self.smc?.pointee.getValue("TC0C") ?? self.smc?.pointee.getValue("TC0D") ?? self.smc?.pointee.getValue("TC0P") ?? self.smc?.pointee.getValue("TC0E") ?? self.smc?.pointee.getValue("TC0F")
let temperature =
self.smc?.pointee.getValue("TC0D") ??
self.smc?.pointee.getValue("TC0E") ??
self.smc?.pointee.getValue("TC0F") ??
self.smc?.pointee.getValue("TC0P") ??
self.smc?.pointee.getValue("TC0H")
self.callback(temperature)
}