diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-06-20 18:49:20 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-06-20 18:49:20 +0200 |
commit | ed434dc625d130e9fad22acd663bbdcc1fae843f (patch) | |
tree | aad75ddf739dde01ae3b0598d74a480ea639de11 | |
parent | e4590569d60e32e0bc0dae774f7480e60bf47504 (diff) |
logic/pipeline: fix intermittent center failure
Issue: #953
-rw-r--r-- | logic/pipeline.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index 809a8ce8..1bd5c736 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -604,7 +604,10 @@ void pipeline::set_center(bool x) { b.set(f_center, x); } void pipeline::set_held_center(bool value) { - b.set(f_held_center, value); + if (value) + b.set(f_held_center | f_center, true); + else + b.set(f_held_center, false); } void pipeline::set_enabled(bool value) { b.set(f_enabled_h, value); } |