From 357445e43569d41cb79782690a865a4a34ac3e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rist=C3=A8?= Date: Mon, 11 Jun 2018 18:01:25 -0400 Subject: [PATCH] One more heuristic for modulation Including the new LoadCmpVramInstruction for APS2 --- QGL/drivers/APS2Pattern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QGL/drivers/APS2Pattern.py b/QGL/drivers/APS2Pattern.py index 618c3915..7fdacc86 100644 --- a/QGL/drivers/APS2Pattern.py +++ b/QGL/drivers/APS2Pattern.py @@ -639,7 +639,7 @@ def inject_modulation_cmds(seqs): if isinstance(entry, BlockLabel.BlockLabel): mod_seq.append(copy(entry)) #mostly copy through control-flow - elif isinstance(entry, ControlFlow.ControlInstruction): + elif isinstance(entry, ControlFlow.ControlInstruction) or isinstance(entry, TdmInstructions.LoadCmpVramInstruction): #heuristic to insert phase reset before trigger if we have modulation commands if isinstance(entry, ControlFlow.Wait): if not ( no_modulation_cmds and (cur_freq == 0) and (cur_phase == 0)):