aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2014-09-08 21:04:31 +1000
committerDean Camera <dean@fourwalledcubicle.com>2014-09-08 21:04:31 +1000
commit7423c1213f53fbbbf35ae45340431d6f1249b1ab (patch)
treeb8f224b1ddea5b1868fe1f21ff3bb8c179539a30 /LUFA/Drivers
parent3692325f58b5215a748ed721642221fc760e08cc (diff)
parentb1603ba06e311df937080b9b7f38837b7ee83f09 (diff)
downloadlufa-7423c1213f53fbbbf35ae45340431d6f1249b1ab.tar.gz
lufa-7423c1213f53fbbbf35ae45340431d6f1249b1ab.tar.bz2
lufa-7423c1213f53fbbbf35ae45340431d6f1249b1ab.zip
Merge pull request #36 from hexwab/midimacrofix
Add missing argument parenthesis on the MIDI_EVENT() macro.
Diffstat (limited to 'LUFA/Drivers')
-rw-r--r--LUFA/Drivers/USB/Class/Common/MIDIClassCommon.h2
1 files changed, 1 insertions, 1 deletions
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. */