Skip to content

Commit

Permalink
Make conditionals match where setup_card_detect is being used.
Browse files Browse the repository at this point in the history
  • Loading branch information
FozzTexx authored and tschak909 committed Nov 9, 2024
1 parent 33965d1 commit 909b46f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/hardware/fnSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 909b46f

Please sign in to comment.