Fixed Issue 161.

This commit is contained in:
Michael Möller
2011-03-15 22:00:31 +00:00
parent 06b7fca703
commit 0aa52cfc64
+2 -2
View File
@@ -16,7 +16,7 @@
The Initial Developer of the Original Code is
Michael Möller <m.moeller@gmx.ch>.
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 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster {
if (!available)
return;
while (serialPort.BytesToRead > 0) {
while (serialPort.IsOpen && serialPort.BytesToRead > 0) {
byte b = (byte)serialPort.ReadByte();
if (b == 0x0D) {
ProcessUpdateLine(buffer.ToString());