mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 02:48:28 -04:00
ParameterInformationParser.cs: Updated comments.
This commit is contained in:
parent
57cf82dbff
commit
fc11a56d8f
@ -43,7 +43,7 @@ namespace ArdupilotMega.Utilities
|
|||||||
// Plenty of timeout
|
// Plenty of timeout
|
||||||
request.Timeout = 10000;
|
request.Timeout = 10000;
|
||||||
|
|
||||||
// Set the Method property of the request to POST.
|
// Set the Method property of the request to GET.
|
||||||
request.Method = "GET";
|
request.Method = "GET";
|
||||||
|
|
||||||
// Get the response.
|
// Get the response.
|
||||||
@ -145,12 +145,14 @@ namespace ArdupilotMega.Utilities
|
|||||||
// Test for success
|
// Test for success
|
||||||
if (metaMatch.Success)
|
if (metaMatch.Success)
|
||||||
{
|
{
|
||||||
|
// Write the key value pair to XML
|
||||||
objXmlTextWriter.WriteStartElement(metaMatch.Groups["MetaKey"].Value.Trim(new char[] { ' ' }));
|
objXmlTextWriter.WriteStartElement(metaMatch.Groups["MetaKey"].Value.Trim(new char[] { ' ' }));
|
||||||
objXmlTextWriter.WriteString(metaMatch.Groups["MetaValue"].Value.Trim(new char[] { ' ' }));
|
objXmlTextWriter.WriteString(metaMatch.Groups["MetaValue"].Value.Trim(new char[] { ' ' }));
|
||||||
objXmlTextWriter.WriteEndElement();
|
objXmlTextWriter.WriteEndElement();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// End this parameter node
|
||||||
objXmlTextWriter.WriteEndElement();
|
objXmlTextWriter.WriteEndElement();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user