Previous | 199869 Revisions | Next |
r32711 Monday 13th October, 2014 at 20:04:05 UTC by R. Belmont |
---|
(MESS) osdcore: reject invalid MIDI bytes with no status, fixes most 6850-based MIDI setups. [R. Belmont] |
[src/osd] | osdcore.c |
r32710 | r32711 | |
---|---|---|
470 | 470 | |
471 | 471 | // printf("write: %02x (%d)\n", data, dev->xmit_cnt); |
472 | 472 | |
473 | // reject data bytes when no valid status exists | |
474 | if ((dev->last_status == 0) && !(data & 0x80)) | |
475 | { | |
476 | dev->xmit_cnt = 0; | |
477 | return; | |
478 | } | |
479 | ||
473 | 480 | if (dev->xmit_cnt >= 4) |
474 | 481 | { |
475 | 482 | printf("MIDI out: packet assembly overflow, contact MAMEdev!\n"); |
Previous | 199869 Revisions | Next |