From 0b5ab1b570f55c9e5a0ce85a9cfe92c14630f43e Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 3 Aug 2021 10:36:39 -0500 Subject: [PATCH] US2400: Fix direction of pan knob LEDs --- libs/surfaces/us2400/strip.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/surfaces/us2400/strip.cc b/libs/surfaces/us2400/strip.cc index 2cb08a56f3..95a92140cc 100644 --- a/libs/surfaces/us2400/strip.cc +++ b/libs/surfaces/us2400/strip.cc @@ -610,8 +610,16 @@ Strip::periodic (PBD::microseconds_t now) _surface->write (_fader->set_position(0.0)); } + bool showing_pan = false; + if (_pan_mode >= PanAzimuthAutomation && _pan_mode <= PanLFEAutomation) { + showing_pan = true; + } + if (_pan_mode == SendAzimuthAutomation) { + showing_pan = true; + } + if ( _vpot->control() ) { - _surface->write (_vpot->set (_vpot->control()->internal_to_interface (_vpot->control()->get_value ()), true)); + _surface->write (_vpot->set (_vpot->control()->internal_to_interface (_vpot->control()->get_value (), showing_pan ? true: false), true)); } else { _surface->write (_vpot->set(0.0, false)); }