summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-06-20 18:49:20 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-06-20 18:49:20 +0200
commited434dc625d130e9fad22acd663bbdcc1fae843f (patch)
treeaad75ddf739dde01ae3b0598d74a480ea639de11 /logic
parente4590569d60e32e0bc0dae774f7480e60bf47504 (diff)
logic/pipeline: fix intermittent center failure
Issue: #953
Diffstat (limited to 'logic')
-rw-r--r--logic/pipeline.cpp5
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); }