From 94067f20c95e67cf297ddca0d904e34d265ec30a Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Mon, 11 May 2020 16:44:56 +0200 Subject: [PATCH] Fixing an error. --- config.h | 2 +- midi_devices.hpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 6665d2a..a27f573 100644 --- a/config.h +++ b/config.h @@ -82,7 +82,7 @@ //* HARDWARE SETTINGS //************************************************************************************************* -#define USB_AUDIO 1 +//#define USB_AUDIO 1 // Teensy Audio Shield: /* Values for SGTL5000_LINEOUT_LEVEL diff --git a/midi_devices.hpp b/midi_devices.hpp index 753eb20..4e6b56c 100644 --- a/midi_devices.hpp +++ b/midi_devices.hpp @@ -26,6 +26,8 @@ #include "config.h" +extern config_t configuration; + /* #if defined(MIDI_DEVICE_USB) #include #endif */ @@ -330,9 +332,9 @@ void handleAfterTouchPoly_MIDI_DEVICE_DIN(byte inChannel, byte inNumber, byte in Serial.print(F("[MIDI_DIN] AT-Poly")); #endif #ifdef MIDI_MERGE_THRU -#ifdef MIDI_DEVICE_USB_HOST if (configuration.midi_soft_thru == true) { +#ifdef MIDI_DEVICE_USB_HOST midi_usb.sendAfterTouch(inNumber, inVelocity, inChannel); #ifdef SHOW_DEBUG Serial.print(F(" THRU->MIDI_USB_HOST"));