From 909b46f08a412f0e30bd3d93856730c52fca9ebc Mon Sep 17 00:00:00 2001 From: Chris Osborn Date: Sat, 9 Nov 2024 09:30:40 -0800 Subject: [PATCH] Make conditionals match where setup_card_detect is being used. --- lib/hardware/fnSystem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/hardware/fnSystem.cpp b/lib/hardware/fnSystem.cpp index 65d161640..a7efeceba 100755 --- a/lib/hardware/fnSystem.cpp +++ b/lib/hardware/fnSystem.cpp @@ -93,7 +93,7 @@ #ifdef ESP_PLATFORM -#if 0 +#if defined(BUILD_ATARI) || defined(PINMAP_ESP32S3) static QueueHandle_t card_detect_evt_queue = NULL; static void IRAM_ATTR card_detect_isr_handler(void *arg) @@ -142,7 +142,8 @@ static void setup_card_detect(gpio_num_t pin) // Add the card detect handler gpio_isr_handler_add(pin, card_detect_isr_handler, (void *)pin); } -#endif +#endif // PINMAP_ESP32S3 + // ESP_PLATFORM #else // !ESP_PLATFORM