From e3d353715a712d8d23d299fd65c0461445d9ff0c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 16 Apr 2012 21:01:59 +0000 Subject: [PATCH] MCP: bit more debugging for vpot press git-svn-id: svn://localhost/ardour2/branches/3.0@11991 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/surfaces/mackie/strip.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index 57693d0e8f..f9c115bbe6 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -451,6 +451,7 @@ Strip::vselect_event (Button& button, ButtonState bs) ac->set_value (ac->normal()); } else { + DEBUG_TRACE (DEBUG::MackieControl, "switching to next pot mode\n"); next_pot_mode (); } } @@ -911,6 +912,7 @@ Strip::next_pot_mode () if (_surface->mcp().flip_mode()) { /* do not change vpot mode while in flipped mode */ + DEBUG_TRACE (DEBUG::MackieControl, "not stepping pot mode - in flip mode\n"); _surface->write (display (1, "Flip")); queue_display_reset (2000); return; @@ -943,6 +945,8 @@ Strip::set_vpot_mode (PotMode m) boost::shared_ptr send; boost::shared_ptr pannable; + DEBUG_TRACE (DEBUG::MackieControl, string_compose ("switch to vpot mode %1\n", m)); + if (!_route) { return; } @@ -968,7 +972,6 @@ Strip::set_vpot_mode (PotMode m) if (pannable) { _vpot->set_control (pannable->pan_azimuth_control); } - _vpot_mode = PanAzimuth; } } break;