Skip to content

Commit

Permalink
fix: app size analysis doesnt work with esp32p4 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaaa committed Sep 30, 2024
1 parent 5d478d6 commit 8e97a0c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ protected List<String> getCommandArgs(String pythonExecutablenPath, IFile file,
protected JSONObject getJSON(String jsonOutput)
{
JSONObject jsonObj = null;
if (jsonOutput.indexOf("{") != 0) //$NON-NLS-1$
{
int begin = jsonOutput.indexOf("{") - 1; //$NON-NLS-1$
int end = jsonOutput.lastIndexOf("}") + 1; //$NON-NLS-1$
jsonOutput = jsonOutput.substring(begin, end);
}
try
{
jsonObj = (JSONObject) new JSONParser().parse(jsonOutput);
Expand Down

0 comments on commit 8e97a0c

Please sign in to comment.