From 03094a91b6e31de104cdc29cba880c67d8f154d0 Mon Sep 17 00:00:00 2001
From: Adam M Rivera <a432511@gmail.com>
Date: Wed, 25 Apr 2012 13:37:19 -0500
Subject: [PATCH] Planner: Moved the call to fetch new parameter meta data to
 where it is determined if the planner requires an update.

---
 Tools/ArdupilotMegaPlanner/MainV2.cs | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Tools/ArdupilotMegaPlanner/MainV2.cs b/Tools/ArdupilotMegaPlanner/MainV2.cs
index a8ace39bd..2ed0efa26 100644
--- a/Tools/ArdupilotMegaPlanner/MainV2.cs
+++ b/Tools/ArdupilotMegaPlanner/MainV2.cs
@@ -20,6 +20,7 @@ using System.Globalization;
 using System.Threading;
 using System.Net.Sockets;
 using ArdupilotMega.Utilities;
+using ArdupilotMega.Utilities.Constants;
 using IronPython.Hosting;
 using log4net;
 using ArdupilotMega.Controls;
@@ -1230,9 +1231,6 @@ namespace ArdupilotMega
                     log.Error("Update check failed", ex);
                 }
             }
-
-            // TODO: Move this to a more appropriate place, like right after CheckForUpdate();
-            ParameterMetaDataParser.GetParameterInformation();
         }
 
 
@@ -1742,6 +1740,9 @@ namespace ArdupilotMega
         {
             ((ProgressReporterDialogue)sender).UpdateProgressAndStatus(-1, "Getting Base URL");
             MainV2.updateCheckMain((ProgressReporterDialogue)sender);
+
+            // TODO: Is this the right place?
+            ParameterMetaDataParser.GetParameterInformation();
         }
 
         private static bool updateCheck(ProgressReporterDialogue frmProgressReporter, string baseurl, string subdir)
-- 
GitLab