Fix play of empty macro
This commit is contained in:
@@ -401,6 +401,9 @@ bool processCurrentMacroAction(void)
|
|||||||
|
|
||||||
void Macros_StartMacro(uint8_t index)
|
void Macros_StartMacro(uint8_t index)
|
||||||
{
|
{
|
||||||
|
if(AllMacros[index].macroActionsCount == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
MacroPlaying = true;
|
MacroPlaying = true;
|
||||||
currentMacroIndex = index;
|
currentMacroIndex = index;
|
||||||
currentMacroActionIndex = 0;
|
currentMacroActionIndex = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user