Subversion Repositories svn.mios32

Rev

Rev 1724 | Rev 1734 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1724 Rev 1726
Line 1... Line 1...
1
/* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
1
/* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
2
// $Id: MiosTerminal.cpp 1724 2013-03-28 20:23:40Z tk $
2
// $Id: MiosTerminal.cpp 1726 2013-03-28 21:20:34Z tk $
3
/*
3
/*
4
 * MIOS Terminal Component
4
 * MIOS Terminal Component
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
7
 *
7
 *
Line 110... Line 110...
110
    int messageOffset = 0;
110
    int messageOffset = 0;
111
111
112
    bool messageReceived = false;
112
    bool messageReceived = false;
113
    if( runningStatus == 0xf0 &&
113
    if( runningStatus == 0xf0 &&
114
        SysexHelper::isValidMios32DebugMessage(data, size, -1) &&
114
        SysexHelper::isValidMios32DebugMessage(data, size, -1) &&
115
        data[7] == 0x40 ) {
115
        (data[7] == 0x40 || data[7] == 0x00) ) { // allow 0x40 (received) and 0x00 (sent) terminal message
-
 
116
                                                 // 0x00 is allowed for the "feedback test" which is described in the MIDI troubleshooting guide
116
            messageOffset = 8;
117
            messageOffset = 8;
117
            messageReceived = true;
118
            messageReceived = true;
118
    }
119
    }
119
120
120
    if( messageReceived ) {
121
    if( messageReceived ) {