Browse Source

Fixing RC522-init

master
Torsten Stauder 4 years ago
parent
commit
0e7c2f54c4
  1. 7
      src/main.cpp
  2. 2
      src/revision.h

7
src/main.cpp

@ -128,7 +128,9 @@ void printWakeUpReason() {
void setup() {
Log_Init();
Rfid_Init();
#ifdef RFID_READER_TYPE_PN5180
Rfid_Init();
#endif
// 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) {
@ -217,6 +219,9 @@ void setup() {
Mqtt_Init();
Battery_Init();
Button_Init();
#ifndef RFID_READER_TYPE_PN5180
Rfid_Init();
#endif
RotaryEncoder_Init();
Wlan_Init();
Bluetooth_Init();

2
src/revision.h

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