projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add parens around args in MIDI_EVENT macro
[pub/lufa.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Common
/
MIDIClassCommon.h
diff --git
a/LUFA/Drivers/USB/Class/Common/MIDIClassCommon.h
b/LUFA/Drivers/USB/Class/Common/MIDIClassCommon.h
index
f52013c
..
b6f6034
100644
(file)
--- 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.
*/
*
* \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. */
/* Enums: */
/** Enum for the possible MIDI jack types in a MIDI device jack descriptor. */