13
0

fix crash when trying to send MMC of timecode > 255 hours

This commit is contained in:
Robin Gareus 2014-06-10 03:18:05 +02:00
parent 915bb2f641
commit 7df663acf2

View File

@ -710,7 +710,7 @@ MachineControlCommand::fill_buffer (MachineControl* mmc, MIDI::byte* b) const
if (_command == MachineControl::cmdLocate) {
*b++ = 0x6; // byte count
*b++ = 0x1; // "TARGET" subcommand
*b++ = _time.hours;
*b++ = _time.hours & 0xff;
*b++ = _time.minutes;
*b++ = _time.seconds;
*b++ = _time.frames;