1.1 --- a/Hardware/Heatmaster/Heatmaster.cs Tue Mar 15 21:54:56 2011 +0000
1.2 +++ b/Hardware/Heatmaster/Heatmaster.cs Tue Mar 15 22:00:31 2011 +0000
1.3 @@ -16,7 +16,7 @@
1.4
1.5 The Initial Developer of the Original Code is
1.6 Michael Möller <m.moeller@gmx.ch>.
1.7 - Portions created by the Initial Developer are Copyright (C) 2010
1.8 + Portions created by the Initial Developer are Copyright (C) 2010-2011
1.9 the Initial Developer. All Rights Reserved.
1.10
1.11 Contributor(s):
1.12 @@ -265,7 +265,7 @@
1.13 if (!available)
1.14 return;
1.15
1.16 - while (serialPort.BytesToRead > 0) {
1.17 + while (serialPort.IsOpen && serialPort.BytesToRead > 0) {
1.18 byte b = (byte)serialPort.ReadByte();
1.19 if (b == 0x0D) {
1.20 ProcessUpdateLine(buffer.ToString());