Skip to content

Commit

Permalink
Do not stop already expired SYNC timer
Browse files Browse the repository at this point in the history
  • Loading branch information
mi01 committed Dec 4, 2019
1 parent d582260 commit 0ac8408
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,8 @@ TraktorS2MK3.syncHandler = function (field) {
engine.setValue(field.group, "sync_enabled", !sync);
} else {
// Button is released, check if timer is still running
if (TraktorS2MK3.syncPressedTimer[field.group] === 0) {
// long press -> sync lock
engine.stopTimer(TraktorS2MK3.syncPressedTimer[field.group]);
TraktorS2MK3.syncPressedTimer[field.group] = 0;
} else {
// If not expired disable sync, otherwise do nothing to lock sync
if (TraktorS2MK3.syncPressedTimer[field.group] !== 0) {
// short press -> disable sync
engine.setValue(field.group, "sync_enabled", 0);
}
Expand Down

0 comments on commit 0ac8408

Please sign in to comment.