Skip to content

Commit

Permalink
make clang happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tueddy authored Dec 16, 2024
1 parent 2c37f6a commit 7f8baa9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/RfidPn5180.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,15 +434,15 @@ void Rfid_WakeupCheck(void) {
if (nfc14443.switchToLPCD(wakeupCounterInMs)) {
Log_Println(lowPowerCardSuccess, LOGLEVEL_INFO);

// configure wakeup pin for deep-sleep wake-up, use ext1
#if (RFID_IRQ >= 0 && RFID_IRQ <= MAX_GPIO)
// configure wakeup pin for deep-sleep wake-up, use ext1. For a real GPIO only, not PE
esp_sleep_enable_ext1_wakeup((1ULL << (RFID_IRQ)), ESP_EXT1_WAKEUP_ALL_LOW);
#endif
#if (defined(PORT_EXPANDER_ENABLE) && (RFID_IRQ > 99))
// reset IRQ state on port-expander
Port_Exit();
#endif
// configure wakeup pin for deep-sleep wake-up, use ext1
#if (RFID_IRQ >= 0 && RFID_IRQ <= MAX_GPIO)
// configure wakeup pin for deep-sleep wake-up, use ext1. For a real GPIO only, not PE
esp_sleep_enable_ext1_wakeup((1ULL << (RFID_IRQ)), ESP_EXT1_WAKEUP_ALL_LOW);
#endif
#if (defined(PORT_EXPANDER_ENABLE) && (RFID_IRQ > 99))
// reset IRQ state on port-expander
Port_Exit();
#endif

// freeze pin states in deep sleep
gpio_hold_en(gpio_num_t(RFID_CS)); // CS/NSS
Expand Down

0 comments on commit 7f8baa9

Please sign in to comment.