mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
fix metaparser bug
This commit is contained in:
parent
432b11e1f4
commit
2632fc0c06
@ -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]));
|
||||||
|
Loading…
Reference in New Issue
Block a user