From 08257cbadb86981d9b4df8193f67608ffe0cd561 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 12 May 2016 22:49:09 -0400 Subject: [PATCH] Only use loop delay when not running, delaying or during a sequence --- ino/intval2_buttons.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ino/intval2_buttons.ino b/ino/intval2_buttons.ino index b169c47..567850d 100644 --- a/ino/intval2_buttons.ino +++ b/ino/intval2_buttons.ino @@ -71,7 +71,8 @@ void loop () { } if (running) { Read_micro(); - } else { + } + if (!running && !sequence && !delaying){ delay(LOOP_DELAY); } }