Skip to content

Commit

Permalink
fixed multi-packet check
Browse files Browse the repository at this point in the history
  • Loading branch information
Geromatic committed Dec 13, 2018
1 parent f76cb35 commit 13e672d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void UMidiComponent::handleCallback(MidiEvent* _event, long ms, int trackID)
if(midi_type == 0xF0)
data.Add(midi_type);
// multi-packet check
else if (midi_type == 0xF7 && data.Num() > 3) {
else if (midi_type == 0xF7 && ptr->size() > 3) {
data.Add((uint8)0xF0);
isDivided = true;
}
Expand Down

0 comments on commit 13e672d

Please sign in to comment.