13
0

US2400: explicitly toggle switch state in some cases where everything should reset.

This commit is contained in:
Ben Loftis 2017-10-17 09:20:18 -05:00
parent 23c2b751aa
commit 48c520a4ef
2 changed files with 19 additions and 0 deletions

View File

@ -171,6 +171,15 @@ Strip::set_stripable (boost::shared_ptr<Stripable> r, bool /*with_messages*/)
_fader->set_control (boost::shared_ptr<AutomationControl>());
_vpot->set_control (boost::shared_ptr<AutomationControl>());
_surface->write (_solo->set_state(on));
_surface->write (_solo->set_state(off));
_surface->write (_mute->set_state(on));
_surface->write (_mute->set_state(off));
_surface->write (_select->set_state(on));
_surface->write (_select->set_state(off));
_stripable = r;
reset_saved_values ();

View File

@ -544,9 +544,19 @@ US2400Protocol::device_ready ()
DEBUG_TRACE (DEBUG::US2400, string_compose ("device ready init (active=%1)\n", active()));
update_surfaces ();
update_global_button (Button::Send, on);
update_global_button (Button::Send, off);
update_global_button (Button::Scrub, on);
update_global_button (Button::Scrub, off);
update_global_button (Button::ClearSolo, on);
update_global_button (Button::ClearSolo, off);
update_global_button (Button::Pan, off);
update_global_button (Button::Pan, on);
update_global_button (Button::Flip, on);
update_global_button (Button::Flip, off);
set_subview_mode (US2400Protocol::None, first_selected_stripable());