From 1fd03c0f5392631033ea00e005a99469559bd53f Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <MichielCottaar@protonmail.com>
Date: Fri, 20 Sep 2024 12:08:25 +0100
Subject: [PATCH] Fix order of blocks and waits in Repeat

---
 src/parts/repeats.jl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/parts/repeats.jl b/src/parts/repeats.jl
index 1be42cf..e866655 100644
--- a/src/parts/repeats.jl
+++ b/src/parts/repeats.jl
@@ -30,7 +30,7 @@ function Repeat(block::AbstractBlock; wait_time=nothing, nrepeat=nothing, variab
 end
 
 function get_index_single_TR(r::Repeat, i::Integer)
-    if iszero(i % 2)
+    if isone(i % 2)
         return r.block
     else
         return Wait(r.wait_time)
-- 
GitLab