Skip to content

Commit

Permalink
One more heuristic for modulation
Browse files Browse the repository at this point in the history
Including the new LoadCmpVramInstruction for APS2
  • Loading branch information
Diego Ristè committed Jun 11, 2018
1 parent 126a625 commit 357445e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QGL/drivers/APS2Pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

1 comment on commit 357445e

@dieris
Copy link
Collaborator

@dieris dieris commented on 357445e Jun 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sfallek1 This will restore our missing instructions

Please sign in to comment.