Hardware/LPC/LMSensors.cs
changeset 323 3f2d9ebacf38
parent 268 844ba72c11de
child 344 3145aadca3d2
     1.1 --- a/Hardware/LPC/LMSensors.cs	Mon Aug 29 18:41:06 2011 +0000
     1.2 +++ b/Hardware/LPC/LMSensors.cs	Wed Aug 31 22:48:49 2011 +0000
     1.3 @@ -116,6 +116,7 @@
     1.4        private readonly float?[] voltages;
     1.5        private readonly float?[] temperatures;
     1.6        private readonly float?[] fans;
     1.7 +      private readonly float?[] controls;
     1.8  
     1.9        private readonly FileStream[] voltageStreams;
    1.10        private readonly FileStream[] temperatureStreams;
    1.11 @@ -125,7 +126,7 @@
    1.12        public float?[] Voltages { get { return voltages; } }
    1.13        public float?[] Temperatures { get { return temperatures; } }
    1.14        public float?[] Fans { get { return fans; } }
    1.15 -
    1.16 +      public float?[] Controls { get { return controls; } }
    1.17  
    1.18        public LMChip(Chip chip, string path) {
    1.19          this.path = path;
    1.20 @@ -151,6 +152,8 @@
    1.21          for (int i = 0; i < fanPaths.Length; i++)
    1.22            fanStreams[i] = new FileStream(fanPaths[i],
    1.23              FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
    1.24 +
    1.25 +        this.controls = new float?[0];
    1.26        }
    1.27  
    1.28        public byte? ReadGPIO(int index) {
    1.29 @@ -163,6 +166,8 @@
    1.30          return null;
    1.31        }
    1.32  
    1.33 +      public void SetControl(int index, byte? value) { }   
    1.34 +
    1.35        private string ReadFirstLine(Stream stream) {
    1.36          StringBuilder sb = new StringBuilder();
    1.37          try {