diff --git a/src/RfidPn5180.cpp b/src/RfidPn5180.cpp index bc43fab..7170e1d 100644 --- a/src/RfidPn5180.cpp +++ b/src/RfidPn5180.cpp @@ -313,7 +313,7 @@ extern unsigned long Rfid_LastRfidCheckTimestamp; Serial.println(F("switch to low power card detection: success")); // configure wakeup pin for deep-sleep wake-up, use ext1 #if (RFID_IRQ >= 0 && RFID_IRQ <= 39) - esp_sleep_enable_ext1_wakeup((1ULL << (RFID_IRQ)), ESP_EXT1_WAKEUP_ANY_HIGH); + esp_sleep_enable_ext1_wakeup((1ULL << (RFID_IRQ)), ESP_EXT1_WAKEUP_ALL_LOW); #endif // freeze pin states in deep sleep gpio_hold_en(gpio_num_t(RFID_CS)); // CS/NSS @@ -342,7 +342,7 @@ extern unsigned long Rfid_LastRfidCheckTimestamp; Log_Println((char *) FPSTR(lowPowerCardSuccess), LOGLEVEL_INFO); // configure wakeup pin for deep-sleep wake-up, use ext1 #if (RFID_IRQ >= 0 && RFID_IRQ <= 39) - esp_sleep_enable_ext1_wakeup((1ULL << (RFID_IRQ)), ESP_EXT1_WAKEUP_ANY_HIGH); + esp_sleep_enable_ext1_wakeup((1ULL << (RFID_IRQ)), ESP_EXT1_WAKEUP_ALL_LOW); #endif // freeze pin states in deep sleep gpio_hold_en(gpio_num_t(RFID_CS)); // CS/NSS diff --git a/src/System.cpp b/src/System.cpp index cc5907a..815c97b 100644 --- a/src/System.cpp +++ b/src/System.cpp @@ -214,7 +214,9 @@ void System_DeepSleepManager(void) { digitalWrite(POWER, LOW); delay(200); Rfid_Exit(); - Port_Exit(); + #ifdef PORT_EXPANDER_ENABLE + Port_Exit(); + #endif Serial.println(F("deep-sleep, good night.......")); esp_deep_sleep_start(); } diff --git a/src/revision.h b/src/revision.h index 3fec6f4..129cf7a 100644 --- a/src/revision.h +++ b/src/revision.h @@ -1,4 +1,4 @@ #ifndef __REVISION_H__ #define __REVISION_H__ - constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20211014-1"; + constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20211014-2"; #endif \ No newline at end of file