aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/keymap_midi.h
diff options
context:
space:
mode:
authorGravatar IBNobody <ibnobody@gmail.com>2016-04-13 22:04:44 -0500
committerGravatar IBNobody <ibnobody@gmail.com>2016-04-13 22:04:44 -0500
commit2900b4884598b06ed59371c48ecea9d3f0bff5ac (patch)
treee5a4513740d4629203d3a663f1c39895cc842267 /quantum/keymap_midi.h
parent95a44cdf01a98180363e8039d769fa7be92b0194 (diff)
downloadqmk_firmware-2900b4884598b06ed59371c48ecea9d3f0bff5ac.tar.gz
Added parenthesis to midi macro.
Diffstat (limited to 'quantum/keymap_midi.h')
-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 436fb2eb5..795f26380 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))