1.1 --- a/Hardware/Heatmaster/Heatmaster.cs Sat Apr 23 14:18:02 2011 +0000
1.2 +++ b/Hardware/Heatmaster/Heatmaster.cs Sat Apr 30 16:03:58 2011 +0000
1.3 @@ -134,8 +134,10 @@
1.4 return WriteField(device, field, '"' + value + '"');
1.5 }
1.6
1.7 - public Heatmaster(string portName, ISettings settings) {
1.8 -
1.9 + public Heatmaster(string portName, ISettings settings)
1.10 + : base("Heatmaster", new Identifier("heatmaster",
1.11 + portName.TrimStart(new [] {'/'}).ToLowerInvariant()), settings)
1.12 + {
1.13 this.portName = portName;
1.14 try {
1.15 serialPort = new SerialPort(portName, 38400, Parity.None, 8,
1.16 @@ -209,17 +211,6 @@
1.17 get { return HardwareType.Heatmaster; }
1.18 }
1.19
1.20 - public override Identifier Identifier {
1.21 - get {
1.22 - return new Identifier("heatmaster",
1.23 - serialPort.PortName.TrimStart(new [] {'/'}).ToLowerInvariant());
1.24 - }
1.25 - }
1.26 -
1.27 - public override string Name {
1.28 - get { return "Heatmaster"; }
1.29 - }
1.30 -
1.31 private void ProcessUpdateLine(string line) {
1.32 Match match = Regex.Match(line, @">\[0:(\d+)\]([0-9:\|-]+)");
1.33 if (match.Success) {