Skip to content

Commit

Permalink
Fix undokit sync
Browse files Browse the repository at this point in the history
  • Loading branch information
jmamma committed Feb 5, 2023
1 parent 809b834 commit 23cb76b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions avr/cores/megacommand/MCL/GridTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,6 @@ bool GridTask::transition_load(uint8_t n, uint8_t track_idx, uint8_t dev_idx,
gdt->seq_track->count_down = -1;
if (mcl_actions.send_machine[n] == 0) {
pmem_track->transition_send(track_idx, n);
if (mcl_actions.dev_sync_slot[dev_idx] == n) {
if (elektron_devs[dev_idx]) {
elektron_devs[dev_idx]->undokit_sync();
}
mcl_actions.dev_sync_slot[dev_idx] = -1;
}
}

pmem_track->transition_load(track_idx, gdt->seq_track, n);
Expand Down
3 changes: 2 additions & 1 deletion avr/cores/megacommand/MCL/MCLSeq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,11 @@ void MCLSeq::seq() {
if (MDSeqTrack::md_trig_mask > 0) {
MD.parallelTrig(MDSeqTrack::md_trig_mask, uart);
}

if (MDSeqTrack::load_machine_cache) {
MD.loadMachinesCache(MDSeqTrack::load_machine_cache);
MD.undokit_sync();
}

// Arp

for (uint8_t i = 0; i < NUM_AUX_TRACKS; i++) {
Expand Down

0 comments on commit 23cb76b

Please sign in to comment.