From: Dean Camera Date: Mon, 8 Sep 2014 11:04:31 +0000 (+1000) Subject: Merge pull request #36 from hexwab/midimacrofix X-Git-Tag: LUFA-140928~14 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/7423c1213f53fbbbf35ae45340431d6f1249b1ab?hp=3692325f58b5215a748ed721642221fc760e08cc Merge pull request #36 from hexwab/midimacrofix Add missing argument parenthesis on the MIDI_EVENT() macro. --- diff --git a/LUFA/Drivers/USB/Class/Common/MIDIClassCommon.h b/LUFA/Drivers/USB/Class/Common/MIDIClassCommon.h index f52013cc9..b6f603455 100644 --- a/LUFA/Drivers/USB/Class/Common/MIDIClassCommon.h +++ b/LUFA/Drivers/USB/Class/Common/MIDIClassCommon.h @@ -135,7 +135,7 @@ * * \return Constructed MIDI event ID. */ - #define MIDI_EVENT(virtualcable, command) ((virtualcable << 4) | (command >> 4)) + #define MIDI_EVENT(virtualcable, command) (((virtualcable) << 4) | ((command) >> 4)) /* Enums: */ /** Enum for the possible MIDI jack types in a MIDI device jack descriptor. */