GUI: fix MML string not clearing release point
This commit is contained in:
parent
1f25e4f467
commit
a42f029f9d
|
@ -338,6 +338,7 @@ void FurnaceGUI::decodeMMLStr(String& source, unsigned char* macro, unsigned cha
|
||||||
bool hasVal=false;
|
bool hasVal=false;
|
||||||
macroLen=0;
|
macroLen=0;
|
||||||
macroLoop=-1;
|
macroLoop=-1;
|
||||||
|
macroRel=-1;
|
||||||
for (char& i: source) {
|
for (char& i: source) {
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case '0': case '1': case '2': case '3': case '4':
|
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;
|
bool hasVal=false;
|
||||||
macroLen=0;
|
macroLen=0;
|
||||||
macroLoop=-1;
|
macroLoop=-1;
|
||||||
|
macroRel=-1;
|
||||||
for (char& i: source) {
|
for (char& i: source) {
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case '0': case '1': case '2': case '3': case '4':
|
case '0': case '1': case '2': case '3': case '4':
|
||||||
|
|
Loading…
Reference in New Issue