From cbe1642816ec3b80bd64aa156f5f7600a0c455df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondrej=20=C4=8Cerman?= Date: Mon, 5 Nov 2018 15:36:11 +0100 Subject: [PATCH] Intel SSD Airflow temperature support (#65) --- Hardware/HDD/SSDIntel.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Hardware/HDD/SSDIntel.cs b/Hardware/HDD/SSDIntel.cs index cc572c0..6e70bfc 100644 --- a/Hardware/HDD/SSDIntel.cs +++ b/Hardware/HDD/SSDIntel.cs @@ -30,6 +30,13 @@ namespace OpenHardwareMonitor.Hardware.HDD { new SmartAttribute(0xAB, SmartNames.ProgramFailCount), new SmartAttribute(0xAC, SmartNames.EraseFailCount), new SmartAttribute(0xB8, SmartNames.EndToEndError), + new SmartAttribute(0xBE, SmartNames.Temperature, + (byte[] r, byte v, IReadOnlyList p) + => { return r[0] + (p == null ? 0 : p[0].Value); }, + SensorType.Temperature, 0, SmartNames.AirflowTemperature, false, + new[] { new ParameterDescription("Offset [°C]", + "Temperature offset of the thermal sensor.\n" + + "Temperature = Value + Offset.", 0) }), new SmartAttribute(0xC0, SmartNames.UnsafeShutdownCount), new SmartAttribute(0xE1, SmartNames.HostWrites, (byte[] r, byte v, IReadOnlyList p)