1.1 --- a/Hardware/TBalancer/TBalancer.cs Thu Aug 12 20:53:27 2010 +0000
1.2 +++ b/Hardware/TBalancer/TBalancer.cs Sun Aug 15 14:46:58 2010 +0000
1.3 @@ -161,8 +161,6 @@
1.4 }
1.5
1.6 for (int i = 0; i < 2; i++) {
1.7 - float maxRPM = 20.0f * data[offset + 44 + 2 * i];
1.8 -
1.9 if (miniNGFans[number * 2 + i] == null)
1.10 miniNGFans[number * 2 + i] =
1.11 new Sensor("miniNG #" + (number + 1) + " Fan Channel " + (i + 1),
1.12 @@ -376,8 +374,9 @@
1.13 public event SensorEventHandler SensorRemoved;
1.14
1.15 public void Accept(IVisitor visitor) {
1.16 - if (visitor != null)
1.17 - visitor.VisitHardware(this);
1.18 + if (visitor == null)
1.19 + throw new ArgumentNullException("visitor");
1.20 + visitor.VisitHardware(this);
1.21 }
1.22
1.23 public void Traverse(IVisitor visitor) { }