diff -r 07a6126a4796 -r 600962f8a298 Hardware/HDD/SmartAttribute.cs --- a/Hardware/HDD/SmartAttribute.cs Mon Feb 13 21:56:29 2012 +0000 +++ b/Hardware/HDD/SmartAttribute.cs Tue Feb 14 23:07:55 2012 +0000 @@ -16,7 +16,7 @@ The Initial Developer of the Original Code is Michael Möller . - Portions created by the Initial Developer are Copyright (C) 2011 + Portions created by the Initial Developer are Copyright (C) 2011-2012 the Initial Developer. All Rights Reserved. Contributor(s): @@ -75,15 +75,17 @@ /// If there exists more than one attribute with /// the same sensor channel and type, then a sensor is created only for the /// first attribute. + /// True to hide the sensor initially. public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType? sensorType, - int sensorChannel) + int sensorChannel, bool defaultHiddenSensor = false) { this.Identifier = identifier; this.Name = name; this.rawValueConversion = rawValueConversion; this.SensorType = sensorType; this.SensorChannel = sensorChannel; + this.DefaultHiddenSensor = defaultHiddenSensor; } /// @@ -97,6 +99,8 @@ public int SensorChannel { get; private set; } + public bool DefaultHiddenSensor { get; private set; } + public bool HasRawValueConversion { get { return rawValueConversion != null;