summaryrefslogtreecommitdiff
path: root/drumgizmo
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-07-13 21:55:26 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-07-13 21:55:26 +0200
commit9b2fdd7bc8bf274e3fe39f28d4b01e5918389d92 (patch)
tree24344fa89e663d8f9188f3dda36bb52936ba1f81 /drumgizmo
parent61fff9f1cb64f50f1655e1ca650c0565c1e54799 (diff)
Simplify free wheel loop control a bit.
Diffstat (limited to 'drumgizmo')
-rw-r--r--drumgizmo/drumgizmoc.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/drumgizmo/drumgizmoc.cc b/drumgizmo/drumgizmoc.cc
index 48a17fd..a00a623 100644
--- a/drumgizmo/drumgizmoc.cc
+++ b/drumgizmo/drumgizmoc.cc
@@ -409,14 +409,7 @@ int main(int argc, char* argv[])
break;
}
- if(ie->isFreewheeling() && oe->isFreewheeling())
- {
- gizmo.setFreeWheel(true);
- }
- else
- {
- gizmo.setFreeWheel(false);
- }
+ gizmo.setFreeWheel(ie->isFreewheeling() && oe->isFreewheeling());
}
ie->stop();