MCP: bit more debugging for vpot press
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 16 Apr 2012 21:01:59 +0000 (21:01 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 16 Apr 2012 21:01:59 +0000 (21:01 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11991 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/surfaces/mackie/strip.cc

index 57693d0e8f829e92d90fc6747b91aa59668044e6..f9c115bbe6dadc605d5a3a6457dcb663a1924476 100644 (file)
@@ -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> send;
        boost::shared_ptr<Pannable> 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;