Hardware/TBalancer/TBalancer.cs
changeset 86 b4f0f206173d
parent 83 3fdadd4a830f
child 87 ecdc3bcef083
     1.1 --- a/Hardware/TBalancer/TBalancer.cs	Sat Mar 27 19:55:09 2010 +0000
     1.2 +++ b/Hardware/TBalancer/TBalancer.cs	Fri Apr 02 16:05:07 2010 +0000
     1.3 @@ -221,7 +221,7 @@
     1.4            } else {
     1.5              DeactivateSensor(sensorhubFlows[i]);
     1.6            }
     1.7 -
     1.8 +        
     1.9          for (int i = 0; i < fans.Length; i++) {
    1.10            float maxRPM = 11.5f * ((data[149 + 2 * i] << 8) | data[148 + 2 * i]);
    1.11  
    1.12 @@ -325,7 +325,7 @@
    1.13        } catch (Exception) { }
    1.14      }
    1.15  
    1.16 -    public void Update() {
    1.17 +    public void Update() {      
    1.18        try {
    1.19          while (serialPort.IsOpen && serialPort.BytesToRead >= 285)
    1.20            ReadData();
    1.21 @@ -337,7 +337,7 @@
    1.22        } catch (InvalidOperationException) {
    1.23          foreach (Sensor sensor in active)
    1.24            sensor.Value = null;
    1.25 -      }
    1.26 +      }      
    1.27      }
    1.28  
    1.29      public void Close() {