Pārlūkot izejas kodu

Added parenthesis to midi macro.

IBNobody 9 gadi atpakaļ
vecāks
revīzija
2900b48845
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      quantum/keymap_midi.h

+ 1 - 1
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))