abcminiuser / lufa

LUFA - the Lightweight USB Framework for AVRs.
http://www.lufa-lib.org
1.04k stars 325 forks source link

add parens around args in MIDI_EVENT macro #36

Closed hexwab closed 10 years ago

hexwab commented 10 years ago

Yes, this bit me. I had code like the following:

switch (b>>4) {
        case 0x8: case 0x9: case 0xa: case 0xb: case 0xe:
            pkt.Event = MIDI_EVENT(0, b & 0xf0);
            bytes_left = 3; break;
            /* ... */
}