mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
US2400: Fix direction of pan knob LEDs
This commit is contained in:
parent
5c9f5ae895
commit
0b5ab1b570
1 changed files with 9 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue