summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorIBNobody <ibnobody@gmail.com>2016-04-13 22:04:44 -0500
committerIBNobody <ibnobody@gmail.com>2016-04-13 22:04:44 -0500
commit2900b4884598b06ed59371c48ecea9d3f0bff5ac (patch)
treee5a4513740d4629203d3a663f1c39895cc842267 /quantum
parent95a44cdf01a98180363e8039d769fa7be92b0194 (diff)
downloadqmk_firmware-2900b4884598b06ed59371c48ecea9d3f0bff5ac.tar.gz
qmk_firmware-2900b4884598b06ed59371c48ecea9d3f0bff5ac.zip
Added parenthesis to midi macro.
Diffstat (limited to 'quantum')
-rw-r--r--quantum/keymap_midi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/keymap_midi.h b/quantum/keymap_midi.h
index 436fb2eb50..795f26380e 100644
--- a/quantum/keymap_midi.h
+++ b/quantum/keymap_midi.h
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <lufa.h>
-#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))