# HG changeset patch # User moel.mich # Date 1300226431 0 # Node ID ddb02fd788ec2dce71997dbe17a8a3afbafd18e3 # Parent 5a6ac1d1bc0ed703d8d96eb4aae2564e9bbc51c1 Fixed Issue 161. diff -r 5a6ac1d1bc0e -r ddb02fd788ec Hardware/Heatmaster/Heatmaster.cs --- a/Hardware/Heatmaster/Heatmaster.cs Tue Mar 15 21:54:56 2011 +0000 +++ b/Hardware/Heatmaster/Heatmaster.cs Tue Mar 15 22:00:31 2011 +0000 @@ -16,7 +16,7 @@ The Initial Developer of the Original Code is Michael Möller . - Portions created by the Initial Developer are Copyright (C) 2010 + Portions created by the Initial Developer are Copyright (C) 2010-2011 the Initial Developer. All Rights Reserved. Contributor(s): @@ -265,7 +265,7 @@ if (!available) return; - while (serialPort.BytesToRead > 0) { + while (serialPort.IsOpen && serialPort.BytesToRead > 0) { byte b = (byte)serialPort.ReadByte(); if (b == 0x0D) { ProcessUpdateLine(buffer.ToString());