1.1 --- a/Hardware/HDD/AbstractHarddrive.cs Mon Feb 13 20:34:39 2012 +0000
1.2 +++ b/Hardware/HDD/AbstractHarddrive.cs Mon Feb 13 21:56:29 2012 +0000
1.3 @@ -183,6 +183,7 @@
1.4 settings);
1.5
1.6 sensors.Add(attribute, sensor);
1.7 + ActivateSensor(sensor);
1.8 sensorTypeAndChannels.Add(pair);
1.9 }
1.10 }
1.11 @@ -192,13 +193,7 @@
1.12 get { return HardwareType.HDD; }
1.13 }
1.14
1.15 - public override ISensor[] Sensors {
1.16 - get {
1.17 - Sensor[] array = new Sensor[sensors.Count];
1.18 - sensors.Values.CopyTo(array, 0);
1.19 - return array;
1.20 - }
1.21 - }
1.22 + public virtual void UpdateAdditionalSensors(DriveAttributeValue[] values) {}
1.23
1.24 public override void Update() {
1.25 if (count == 0) {
1.26 @@ -212,7 +207,9 @@
1.27 sensor.Value = attribute.ConvertValue(value);
1.28 }
1.29 }
1.30 - }
1.31 + }
1.32 +
1.33 + UpdateAdditionalSensors(values);
1.34 }
1.35
1.36 count++;