GUI: fix MML string not clearing release point

This commit is contained in:
tildearrow 2022-02-12 21:01:28 -05:00
parent 1f25e4f467
commit a42f029f9d
1 changed files with 2 additions and 0 deletions

View File

@ -338,6 +338,7 @@ void FurnaceGUI::decodeMMLStr(String& source, unsigned char* macro, unsigned cha
bool hasVal=false;
macroLen=0;
macroLoop=-1;
macroRel=-1;
for (char& i: source) {
switch (i) {
case '0': case '1': case '2': case '3': case '4':
@ -385,6 +386,7 @@ void FurnaceGUI::decodeMMLStr(String& source, int* macro, unsigned char& macroLe
bool hasVal=false;
macroLen=0;
macroLoop=-1;
macroRel=-1;
for (char& i: source) {
switch (i) {
case '0': case '1': case '2': case '3': case '4':