]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Added parenthesis to midi macro.
authorIBNobody <ibnobody@gmail.com>
Thu, 14 Apr 2016 03:04:44 +0000 (22:04 -0500)
committerIBNobody <ibnobody@gmail.com>
Thu, 14 Apr 2016 03:04:44 +0000 (22:04 -0500)
quantum/keymap_midi.h

index 436fb2eb503903a7afec9c0733b19985dcd8d044..795f26380ed8fb5eb53ac5b2999e358769cb1f09 100644 (file)
@@ -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))