1.1 --- a/Hardware/Heatmaster/Heatmaster.cs Mon Aug 23 20:00:06 2010 +0000
1.2 +++ b/Hardware/Heatmaster/Heatmaster.cs Tue Aug 24 19:06:49 2010 +0000
1.3 @@ -143,10 +143,10 @@
1.4 firmwareRevision = ReadInteger(0, 'V');
1.5 firmwareCRC = ReadInteger(0, 'C');
1.6
1.7 - int fanCount = ReadInteger(32, '?');
1.8 - int temperatureCount = ReadInteger(48, '?');
1.9 - int flowCount = ReadInteger(64, '?');
1.10 - int relayCount = ReadInteger(80, '?');
1.11 + int fanCount = Math.Min(ReadInteger(32, '?'), 4);
1.12 + int temperatureCount = Math.Min(ReadInteger(48, '?'), 6);
1.13 + int flowCount = Math.Min(ReadInteger(64, '?'), 1);
1.14 + int relayCount = Math.Min(ReadInteger(80, '?'), 1);
1.15
1.16 fans = new Sensor[fanCount];
1.17 controls = new Sensor[fanCount];