Skip to content

Commit

Permalink
Enable MIDI over USB for ESP32-S2
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Apr 16, 2024
1 parent dbf5376 commit b12db8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MIDI_Interfaces/USBMIDI/USBMIDI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ END_CS_NAMESPACE
#endif

#elif defined(ARDUINO_ARCH_ESP32) && (ESP_ARDUINO_VERSION_MAJOR >= 3) && \
CONFIG_IDF_TARGET_ESP32S3
(CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)

#ifndef ARDUINO_USB_MODE
#error "ESP32S3 expects ARDUINO_USB_MODE to be set"
#error "ESP32-S2/S3 expects ARDUINO_USB_MODE to be set"
#endif
#if ARDUINO_USB_MODE != 1
#include "USBMIDI_ESP32.hpp"
Expand All @@ -93,7 +93,7 @@ END_CS_NAMESPACE
#else
#define CS_USB_MIDI_NOT_SUPPORTED 1
#pragma message( \
"ESP32S3: USB MIDI not enabled. Set the Tools > USB Type setting to \"USB-OTG\" to enable it.")
"ESP32-S2/S3: USB MIDI not enabled. Set the Tools > USB Type setting to \"USB-OTG\" to enable it.")
#endif

#elif defined(ARDUINO_ARCH_MBED)
Expand Down

0 comments on commit b12db8c

Please sign in to comment.