From c91d537c558e410378d8e40608b1c7e5ffc3a7d9 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 9 Oct 2023 18:51:06 +0700 Subject: [PATCH] fix typo in previous commit --- src/arduino/Adafruit_USBH_Host.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/arduino/Adafruit_USBH_Host.cpp b/src/arduino/Adafruit_USBH_Host.cpp index 9ae1a07c..a9ecbc68 100644 --- a/src/arduino/Adafruit_USBH_Host.cpp +++ b/src/arduino/Adafruit_USBH_Host.cpp @@ -36,14 +36,6 @@ #include "Adafruit_TinyUSB_API.h" #include "Adafruit_USBH_Host.h" -#if defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421 -static void max3421_isr(void); - -#if defined(ARDUINO_ARCH_ESP32) -SemaphoreHandle_t max3421_intr_sem; -static void max3421_intr_task(void *param); -#endif - Adafruit_USBH_Host *Adafruit_USBH_Host::_instance = NULL; Adafruit_USBH_Host::Adafruit_USBH_Host(void) { @@ -55,6 +47,14 @@ Adafruit_USBH_Host::Adafruit_USBH_Host(void) { #endif } +#if defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421 +static void max3421_isr(void); + +#if defined(ARDUINO_ARCH_ESP32) +SemaphoreHandle_t max3421_intr_sem; +static void max3421_intr_task(void *param); +#endif + Adafruit_USBH_Host::Adafruit_USBH_Host(SPIClass *spi, int8_t cs, int8_t intr) { Adafruit_USBH_Host::_instance = this; _spi = spi;