diff options
Diffstat (limited to 'logic')
| -rw-r--r-- | logic/main-settings.hpp | 2 | ||||
| -rw-r--r-- | logic/pipeline.cpp | 3 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/logic/main-settings.hpp b/logic/main-settings.hpp index 0795bca4..5638b84c 100644 --- a/logic/main-settings.hpp +++ b/logic/main-settings.hpp @@ -73,7 +73,7 @@ struct OTR_LOGIC_EXPORT main_settings final      value<bool> tray_start { b, "start-in-tray", false };      value<bool> center_at_startup { b, "center-at-startup", true }; -    value<centering_state> centering_mode { b, "centering-mode", center_roll_compensated };; +    value<centering_state> centering_mode { b, "centering-mode", center_roll_compensated };      value<int> neck_z { b, "neck-depth", 0 };      value<bool> neck_enable { b, "neck-enable", false }; diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index f8827b7e..171c7016 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -310,7 +310,7 @@ void pipeline::maybe_set_center_pose(const centering_state mode, const Pose& val  Pose pipeline::apply_center(const centering_state mode, Pose value) const  {      if (mode != center_disabled) -	{ +        {          for (unsigned k = TX; k <= TZ; k++)              value(k) -= center.P(k); @@ -342,6 +342,7 @@ Pose pipeline::apply_center(const centering_state mode, Pose value) const              value[Yaw]   =  v.y();              value[Roll]  = -v.z();              break; +        case center_disabled: break;          }      } | 
