Skip to content
Snippets Groups Projects
Commit 2632fc0c authored by Michael Oborne's avatar Michael Oborne
Browse files

fix metaparser bug

parent 432b11e1
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,7 @@ namespace ArdupilotMega.Utilities ...@@ -208,7 +208,7 @@ namespace ArdupilotMega.Utilities
{ {
// This is the end index for a substring to search for parameter attributes // This is the end index for a substring to search for parameter attributes
// If we are on the last index in our collection, we will search to the end of the file // If we are on the last index in our collection, we will search to the end of the file
var stopMetaIdx = (x == metaIndicies.Count - 1) ? subStringToSearch.Length : metaIndicies[x + 1]; var stopMetaIdx = (x == metaIndicies.Count - 1) ? subStringToSearch.Length : metaIndicies[x + 1] + 1;
// This meta param string // This meta param string
var metaString = subStringToSearch.Substring(metaIndicies[x], (stopMetaIdx - metaIndicies[x])); var metaString = subStringToSearch.Substring(metaIndicies[x], (stopMetaIdx - metaIndicies[x]));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment