Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scratch on first wheel touch #4761

Merged
merged 2 commits into from
May 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
scratchEnable: use stopScratchTimer(timerId)
  • Loading branch information
ronso0 committed May 18, 2022
commit 409627277b822a82612dd99cafd007f277b73996
3 changes: 1 addition & 2 deletions src/controllers/controllerengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1295,8 +1295,7 @@ void ControllerEngine::scratchEnable(int deck, int intervalsPerRev, double rpm,
if (m_dx[deck] != 0) {
//qDebug() << "Already scratching deck" << deck << ". Overriding.";
int timerId = m_scratchTimers.key(deck);
killTimer(timerId);
m_scratchTimers.remove(timerId);
stopScratchTimer(timerId);
}

// Controller resolution in intervals per second at normal speed.
Expand Down