Skip to content

Commit

Permalink
Fix post-copy behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Chysn committed Aug 10, 2018
1 parent fcca3f7 commit 6582b68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions software/o_c_REV/APP_MIDI.ino
Expand Up @@ -338,16 +338,16 @@ public:

/* Perform a copy or sysex dump */
void CopySetup(int source, int target) {
int source_offset = MIDI_PARAMETER_COUNT * source;
int target_offset = MIDI_PARAMETER_COUNT * target;
if (source_offset == target_offset) {
if (source == target) {
OnSendSysEx();
} else {
int source_offset = MIDI_PARAMETER_COUNT * source;
int target_offset = MIDI_PARAMETER_COUNT * target;
for (int c = 0; c < MIDI_PARAMETER_COUNT; c++)
{
values_[target_offset + c] = values_[source_offset + c];
}
SwitchSetup(target);
SelectSetup(target);
Resume();
}
copy_mode = 0;
Expand Down

0 comments on commit 6582b68

Please sign in to comment.