Browse Source

APM Planner 1.0.71

fix silly updater issue.
for those with problems download OpenTK.GLControl.dll and replace it.
master
Michael Oborne 14 years ago
parent
commit
b7c936d819
  1. 5
      Tools/ArdupilotMegaPlanner/MainV2.cs

5
Tools/ArdupilotMegaPlanner/MainV2.cs

@ -1391,8 +1391,11 @@ namespace ArdupilotMega @@ -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);
}

Loading…
Cancel
Save