diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-07 18:54:31 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-07 18:54:31 +0000 |
commit | d1d164092bf195d37a37a67f333d4a77510dc057 (patch) | |
tree | 8285e2e9fa6a9d7e43e678dca2e7117ea2740fa4 /libs/surfaces/mackie/mackie_port.cc | |
parent | a202b08f653151ab4b54742fa177a639826cc360 (diff) |
MCP: build fix
git-svn-id: svn://localhost/ardour2/branches/3.0@11821 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/mackie_port.cc')
-rw-r--r-- | libs/surfaces/mackie/mackie_port.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/surfaces/mackie/mackie_port.cc b/libs/surfaces/mackie/mackie_port.cc index 2dd36ffd9b..ae9a7bf1fb 100644 --- a/libs/surfaces/mackie/mackie_port.cc +++ b/libs/surfaces/mackie/mackie_port.cc @@ -140,17 +140,18 @@ MidiByteArray calculate_challenge_response (MidiByteArray::iterator begin, MidiB // not used right now MidiByteArray MackiePort::host_connection_query (MidiByteArray & bytes) { + MidiByteArray response; + // handle host connection query DEBUG_TRACE (DEBUG::MackieControl, string_compose ("host connection query: %1\n", bytes)); if (bytes.size() != 18) { finalise_init (false); cerr << "expecting 18 bytes, read " << bytes << " from " << input_port().name() << endl; - return; + return response; } // build and send host connection reply - MidiByteArray response; response << 0x02; copy (bytes.begin() + 6, bytes.begin() + 6 + 7, back_inserter (response)); response << calculate_challenge_response (bytes.begin() + 6 + 7, bytes.begin() + 6 + 7 + 4); |