Added parenthesis to midi macro.

master
IBNobody 2016-04-13 22:04:44 -05:00
parent 95a44cdf01
commit 2900b48845
1 changed files with 1 additions and 1 deletions

View 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))