From b7c936d819e74d5e7915efc8698d496ffefbd6a3 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Sun, 18 Sep 2011 19:17:41 +0800 Subject: [PATCH] APM Planner 1.0.71 fix silly updater issue. for those with problems download OpenTK.GLControl.dll and replace it. --- Tools/ArdupilotMegaPlanner/MainV2.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/ArdupilotMegaPlanner/MainV2.cs b/Tools/ArdupilotMegaPlanner/MainV2.cs index 022ce5b1d9..5175a7d52f 100644 --- a/Tools/ArdupilotMegaPlanner/MainV2.cs +++ b/Tools/ArdupilotMegaPlanner/MainV2.cs @@ -1391,8 +1391,11 @@ namespace ArdupilotMega { FileInfo fi = new FileInfo(path); - if (fi.Length != response.ContentLength) + if (fi.Length != response.ContentLength) // && response.Headers[HttpResponseHeader.ETag] != "0") { + StreamWriter sw = new StreamWriter(path+".etag"); + sw.WriteLine(response.Headers[HttpResponseHeader.ETag]); + sw.Close(); getfile = true; Console.WriteLine("NEW FILE " + file); }