summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-01-07 16:40:14 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-01-07 16:42:57 -0500
commit58edc83d112bd034ffda09971b6a319338fb74c2 (patch)
tree167ba8ef0877700b7434621d56ee7b7e3918030b
parent6e71d3b44521fdfbf731d909f736ec282677f349 (diff)
tweak/add faderport debug messages
-rw-r--r--libs/surfaces/faderport/faderport.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/surfaces/faderport/faderport.cc b/libs/surfaces/faderport/faderport.cc
index f10f70dce5..5a302409e9 100644
--- a/libs/surfaces/faderport/faderport.cc
+++ b/libs/surfaces/faderport/faderport.cc
@@ -338,6 +338,8 @@ FaderPort::button_handler (MIDI::Parser &, MIDI::EventTwoBytes* tb)
ButtonID id (ButtonID (tb->controller_number));
Button& button (get_button (id));
+ DEBUG_TRACE (DEBUG::FaderPort, string_compose ("button event for ID %1, press ? %2\n", tb->controller_number, tb->value ? "yes" : "no"));
+
if (tb->value) {
buttons_down.insert (id);
} else {
@@ -515,6 +517,8 @@ FaderPort::fader_handler (MIDI::Parser &, MIDI::EventTwoBytes* tb)
void
FaderPort::sysex_handler (MIDI::Parser &p, MIDI::byte *buf, size_t sz)
{
+ DEBUG_TRACE (DEBUG::FaderPort, string_compose ("sysex message received, size = %1\n", sz));
+
if (sz < 17) {
return;
}
@@ -845,6 +849,7 @@ FaderPort::connection_handler (boost::weak_ptr<ARDOUR::Port>, std::string name1,
*/
g_usleep (100000);
+ DEBUG_TRACE (DEBUG::FaderPort, "device now connected for both input and output\n");
connected ();
} else {
@@ -862,7 +867,7 @@ FaderPort::connection_handler (boost::weak_ptr<ARDOUR::Port>, std::string name1,
void
FaderPort::connected ()
{
- DEBUG_TRACE (DEBUG::FaderPort, "connection status changed\n");
+ DEBUG_TRACE (DEBUG::FaderPort, "sending device inquiry message...\n");
start_midi_handling ();