Fixed a NullReferenceException in the HDD SMART code.
2 using System.Collections.Generic;
6 namespace OpenHardwareMonitor.Hardware.LPC {
7 public class W83627DHG : IHardware {
14 private bool available = false;
16 public W83627DHG(byte revision) {
17 this.revision = revision;
19 this.name = "Winbond W83627DHG";
20 this.icon = Utilities.EmbeddedResources.GetImage("chip.png");
23 public bool IsAvailable {
24 get { return available; }
31 public string Identifier {
32 get { return "/lpc/w83627dhg"; }
39 public ISensor[] Sensors {
40 get { return new ISensor[0]; }
43 public string GetReport() {
44 StringBuilder r = new StringBuilder();
46 r.AppendLine("LPC W83627DHG");
48 r.Append("Chip revision: 0x"); r.AppendLine(revision.ToString("X"));
53 public void Update() { }
55 #pragma warning disable 67
56 public event SensorEventHandler SensorAdded;
57 public event SensorEventHandler SensorRemoved;
58 #pragma warning restore 67