diff --git a/Modules/Sensors/readers.swift b/Modules/Sensors/readers.swift index 9f50660c..0631b624 100644 --- a/Modules/Sensors/readers.swift +++ b/Modules/Sensors/readers.swift @@ -33,31 +33,7 @@ internal class SensorsReader: Reader<[Sensor_p]> { #endif if let count = SMC.shared.getValue("FNum") { - debug("Found \(Int(count)) fans", log: self.log) - - for i in 0.. Bool in @@ -174,6 +150,41 @@ internal class SensorsReader: Reader<[Sensor_p]> { self.callback(self.list) } + private func loadFans(_ count: Int) { + debug("Found \(Int(count)) fans", log: self.log) + + for i in 0.. FanMode { let fansMode: Int = Int(SMC.shared.getValue("FS! ") ?? 0) var mode: FanMode = .automatic