From: IBNobody Date: Thu, 14 Apr 2016 03:04:44 +0000 (-0500) Subject: Added parenthesis to midi macro. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2900b4884598b06ed59371c48ecea9d3f0bff5ac;p=qmk_firmware.git Added parenthesis to midi macro. --- diff --git a/quantum/keymap_midi.h b/quantum/keymap_midi.h index 436fb2eb5..795f26380 100644 --- a/quantum/keymap_midi.h +++ b/quantum/keymap_midi.h @@ -20,7 +20,7 @@ along with this program. If not, see . #include -#define MIDI(n) (n | 0x6000) +#define MIDI(n) ((n) | 0x6000) #define MIDI12 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000 #define CHNL(note, channel) (note + (channel << 8))