From fc11a56d8f19026df2fa58aabf154df7e8fabfe5 Mon Sep 17 00:00:00 2001 From: Adam M Rivera Date: Tue, 24 Apr 2012 14:06:21 -0500 Subject: [PATCH] ParameterInformationParser.cs: Updated comments. --- .../Utilities/ParameterInformationParser.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/ArdupilotMegaPlanner/Utilities/ParameterInformationParser.cs b/Tools/ArdupilotMegaPlanner/Utilities/ParameterInformationParser.cs index a6a87cb6b4..e67cf8ec41 100644 --- a/Tools/ArdupilotMegaPlanner/Utilities/ParameterInformationParser.cs +++ b/Tools/ArdupilotMegaPlanner/Utilities/ParameterInformationParser.cs @@ -43,7 +43,7 @@ namespace ArdupilotMega.Utilities // Plenty of timeout request.Timeout = 10000; - // Set the Method property of the request to POST. + // Set the Method property of the request to GET. request.Method = "GET"; // Get the response. @@ -145,12 +145,14 @@ namespace ArdupilotMega.Utilities // Test for success if (metaMatch.Success) { + // Write the key value pair to XML objXmlTextWriter.WriteStartElement(metaMatch.Groups["MetaKey"].Value.Trim(new char[] { ' ' })); objXmlTextWriter.WriteString(metaMatch.Groups["MetaValue"].Value.Trim(new char[] { ' ' })); objXmlTextWriter.WriteEndElement(); } } + // End this parameter node objXmlTextWriter.WriteEndElement(); } }