From a712ac6c8ae020173a22e4e8be07f5f65561a66e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Tu=C4=8Dek?= Date: Mon, 1 Apr 2019 12:41:03 +0200 Subject: [PATCH] Fix play of empty macro --- right/src/macros.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/right/src/macros.c b/right/src/macros.c index b30bad8..092f3e0 100644 --- a/right/src/macros.c +++ b/right/src/macros.c @@ -401,6 +401,9 @@ bool processCurrentMacroAction(void) void Macros_StartMacro(uint8_t index) { + if(AllMacros[index].macroActionsCount == 0) { + return; + } MacroPlaying = true; currentMacroIndex = index; currentMacroActionIndex = 0;