Kaynağa Gözat

Added parenthesis to midi macro.

IBNobody 9 yıl önce
ebeveyn
işleme
2900b48845
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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))