13
0

US2400: Fix direction of pan knob LEDs

This commit is contained in:
Ben Loftis 2021-08-03 10:36:39 -05:00
parent 5c9f5ae895
commit 0b5ab1b570

View File

@ -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));
}