From 2632fc0c06ab4152c39b8edf2a4568df25234125 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Mon, 30 Apr 2012 21:54:27 +0800 Subject: [PATCH] fix metaparser bug --- Tools/ArdupilotMegaPlanner/Utilities/ParameterMetaDataParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ArdupilotMegaPlanner/Utilities/ParameterMetaDataParser.cs b/Tools/ArdupilotMegaPlanner/Utilities/ParameterMetaDataParser.cs index 97b5aee320..2bf2cc3444 100644 --- a/Tools/ArdupilotMegaPlanner/Utilities/ParameterMetaDataParser.cs +++ b/Tools/ArdupilotMegaPlanner/Utilities/ParameterMetaDataParser.cs @@ -208,7 +208,7 @@ namespace ArdupilotMega.Utilities { // 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 - 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 var metaString = subStringToSearch.Substring(metaIndicies[x], (stopMetaIdx - metaIndicies[x]));