Browse Source

Fixing wakeup-bug via button when LPCD is enabled

master
Torsten Stauder 4 years ago
parent
commit
3564f8223b
  1. 4
      src/main.cpp
  2. 2
      src/revision.h

4
src/main.cpp

@ -129,7 +129,11 @@ void printWakeUpReason() {
void setup() { void setup() {
Log_Init(); Log_Init();
Rfid_Init(); Rfid_Init();
// Check if wakeup-reason was card-detection (PN5180 only)
esp_sleep_wakeup_cause_t wakeup_reason = esp_sleep_get_wakeup_cause();
if (wakeup_reason == ESP_SLEEP_WAKEUP_EXT1) {
Rfid_WakeupCheck(); Rfid_WakeupCheck();
}
System_Init(); System_Init();
memset(&gPlayProperties, 0, sizeof(gPlayProperties)); memset(&gPlayProperties, 0, sizeof(gPlayProperties));

2
src/revision.h

@ -1,4 +1,4 @@
#ifndef __REVISION_H__ #ifndef __REVISION_H__
#define __REVISION_H__ #define __REVISION_H__
constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20210728-1";
constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20210731-1";
#endif #endif
Loading…
Cancel
Save