From 285bb4ac7f4aabc00a80062dc809bac8253a3bae Mon Sep 17 00:00:00 2001 From: Todd Naugle Date: Mon, 19 Jul 2021 12:25:27 -0500 Subject: [PATCH] Mackie Control : Improve debug trace output by skipping meter write output --- libs/surfaces/mackie/surface_port.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/surfaces/mackie/surface_port.cc b/libs/surfaces/mackie/surface_port.cc index 02ba53a14a..1c3d959f33 100644 --- a/libs/surfaces/mackie/surface_port.cc +++ b/libs/surfaces/mackie/surface_port.cc @@ -167,7 +167,10 @@ void SurfacePort::reconnect () { _async_out->reconnect (); + _async_out->try_reconnect_missing (); _async_in->reconnect (); + _async_in->try_reconnect_missing (); + } std::string @@ -197,7 +200,12 @@ SurfacePort::write (const MidiByteArray & mba) return 0; } - DEBUG_TRACE (DEBUG::MackieControl, string_compose ("port %1 write %2\n", output_port().name(), mba)); +#ifndef NDEBUG + /* skip meter output since it makes too much output for normal use */ + if (mba[0] != 0xd0 && mba[0] != 0xd1) { + DEBUG_TRACE (DEBUG::MackieControl, string_compose ("port %1 write %2\n", output_port().name(), mba)); + } +#endif if (mba[0] != 0xf0 && mba.size() > 3) { std::cerr << "TOO LONG WRITE: " << mba << std::endl;