fix maybe long duration before setting tbr
This commit is contained in:
parent
e20084c97f
commit
bd0a298168
|
@ -252,10 +252,25 @@ public class SetTbrCommand implements Command {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Log.v("SetTbrCommand:tick",state+": setting and going to SET");
|
Log.v("SetTbrCommand:tick",state+": setting");
|
||||||
scripter.pressCheckKey();
|
scripter.pressCheckKey();
|
||||||
|
scripter.waitScreen(300);
|
||||||
|
if(scripter.currentMenu.getType()==MenuType.MAIN_MENU || scripter.currentMenu.getType()!=MenuType.WARNING_OR_ERROR)
|
||||||
|
{
|
||||||
|
Log.v("SetTbrCommand:tick",state+": set and going to SET");
|
||||||
updateState(SET, 30);
|
updateState(SET, 30);
|
||||||
}
|
}
|
||||||
|
else if(retries>0)
|
||||||
|
{
|
||||||
|
Log.v("SetTbrCommand:tick",state+": not set, wait");
|
||||||
|
retries--;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Log.v("SetTbrCommand:tick",state+": no retry left");
|
||||||
|
updateState(ERROR,30);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue