Changed the T-Balancer fields for the actual PWM (percent) value of the channels from 156+ to 137+, because on some (older?) hardware the fields 156+ seem not to be updated. Fields 137+ have one bit less resolution, but it's what the Navigator uses as well (and used only if in PWM mode).
authormoel.mich
Sun, 07 Mar 2010 12:17:21 +0000
changeset 75be9bbc350884
parent 74 20c1378e0ede
child 76 42784fd84b16
Changed the T-Balancer fields for the actual PWM (percent) value of the channels from 156+ to 137+, because on some (older?) hardware the fields 156+ seem not to be updated. Fields 137+ have one bit less resolution, but it's what the Navigator uses as well (and used only if in PWM mode).
Hardware/TBalancer/TBalancer.cs
     1.1 --- a/Hardware/TBalancer/TBalancer.cs	Sun Mar 07 11:28:18 2010 +0000
     1.2 +++ b/Hardware/TBalancer/TBalancer.cs	Sun Mar 07 12:17:21 2010 +0000
     1.3 @@ -233,7 +233,7 @@
     1.4                });
     1.5  
     1.6            if ((data[136] & (1 << i)) == 0) // pwm mode
     1.7 -            fans[i].Value = fans[i].Parameters[0].Value * 0.01f * data[156 + i];
     1.8 +            fans[i].Value = fans[i].Parameters[0].Value * 0.02f * data[137 + i];
     1.9            else // analog mode
    1.10              fans[i].Value = fans[i].Parameters[0].Value * 0.01f * data[141 + i]; 
    1.11            ActivateSensor(fans[i]);