Skip to content

Commit c8e54ba

Browse files
committed
Make conditionals match where setup_card_detect is being used.
1 parent 24db276 commit c8e54ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/hardware/fnSystem.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393

9494

9595
#ifdef ESP_PLATFORM
96-
#if 0
96+
#if defined(BUILD_ATARI) || defined(PINMAP_ESP32S3)
9797
static QueueHandle_t card_detect_evt_queue = NULL;
9898

9999
static void IRAM_ATTR card_detect_isr_handler(void *arg)
@@ -142,7 +142,8 @@ static void setup_card_detect(gpio_num_t pin)
142142
// Add the card detect handler
143143
gpio_isr_handler_add(pin, card_detect_isr_handler, (void *)pin);
144144
}
145-
#endif
145+
#endif // PINMAP_ESP32S3
146+
146147
// ESP_PLATFORM
147148
#else
148149
// !ESP_PLATFORM

0 commit comments

Comments
 (0)