/[ThermoControl]/trunk/libThermoControl/Configuration.cs
ViewVC logotype

Diff of /trunk/libThermoControl/Configuration.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libThermoControl/Configuration.cs	2013/11/13 02:22:43	20
+++ trunk/libThermoControl/Configuration.cs	2013/11/13 02:39:41	21
@@ -71,7 +71,7 @@
             {
                 using (BinaryWriter bw = new BinaryWriter(fs))
                 {
-                    bw.Write(temp);
+                    bw.Write((byte)temp);
                     bw.Flush();
                     bw.Close();
                 }
@@ -98,7 +98,7 @@
             {
                 using (BinaryReader br = new BinaryReader(fs))
                 {
-                    temp = br.ReadInt32();
+                    temp = br.ReadByte();
                     br.Close();
                 }
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22