Skip to content

Commit

Permalink
Merge pull request #1 from shimpe/fix_spurious_paths
Browse files Browse the repository at this point in the history
fix for issue Makeblock-official#21: XY plotter sometimes plots spurious circle/path
  • Loading branch information
TodorBalabanov authored Feb 23, 2020
2 parents d965f1c + fe5c303 commit 5c0f2cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion software/GCodeParser/process_string.ino
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ void process_string(char instruction[], int size)
//look for the number that appears after the char key and return it
double search_string(char key, char instruction[], int string_size)
{
char temp[10] = "";
char temp[11] = "";

for (byte i=0; i<string_size; i++)
{
Expand All @@ -468,6 +468,7 @@ double search_string(char key, char instruction[], int string_size)
i++;
k++;
}
temp[k] = 0;
return strtod(temp, NULL);
}
}
Expand Down

0 comments on commit 5c0f2cc

Please sign in to comment.