From d04c0f92f8e98fe5cff077935dab53fa1213caaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20St=C3=A4ck?= Date: Mon, 24 Jun 2019 15:00:42 +0200 Subject: [PATCH] Use TEENSYDUINO to determine version rather than making our own --- NuEVI/hardware.h | 4 ---- NuEVI/midi.cpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/NuEVI/hardware.h b/NuEVI/hardware.h index 59027ce..cbe9a75 100644 --- a/NuEVI/hardware.h +++ b/NuEVI/hardware.h @@ -3,10 +3,6 @@ #define REVB -//Comment out the following line if you have Teensyduino 1.4.0 or earlier, to make pitch bend over USB-MIDI work. -#define NEWTEENSYDUINO - - // Pin definitions // Teensy pins diff --git a/NuEVI/midi.cpp b/NuEVI/midi.cpp index 75a36ca..fc05554 100644 --- a/NuEVI/midi.cpp +++ b/NuEVI/midi.cpp @@ -44,7 +44,7 @@ void midiSendAfterTouch(uint8_t value) { void midiSendPitchBend(uint16_t value) { - #if defined(NEWTEENSYDUINO) + #if (TEENSYDUINO > 140) usbMIDI.sendPitchBend(value-8192, midiChannel); // newer teensyduino "pitchBend-8192" older just "pitchBend"... strange thing to change #else usbMIDI.sendPitchBend(value, midiChannel);