|
@ -7,6 +7,7 @@ |
|
|
#include "Log.h"
|
|
|
#include "Log.h"
|
|
|
#include "Mqtt.h"
|
|
|
#include "Mqtt.h"
|
|
|
#include "SdCard.h"
|
|
|
#include "SdCard.h"
|
|
|
|
|
|
#include "Port.h"
|
|
|
|
|
|
|
|
|
constexpr const char prefsRfidNamespace[] PROGMEM = "rfidTags"; // Namespace used to save IDs of rfid-tags
|
|
|
constexpr const char prefsRfidNamespace[] PROGMEM = "rfidTags"; // Namespace used to save IDs of rfid-tags
|
|
|
constexpr const char prefsSettingsNamespace[] PROGMEM = "settings"; // Namespace used for generic settings
|
|
|
constexpr const char prefsSettingsNamespace[] PROGMEM = "settings"; // Namespace used for generic settings
|
|
@ -186,6 +187,14 @@ void System_DeepSleepManager(void) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Disable amps in order to avoid ugly noises when powering off
|
|
|
|
|
|
#ifdef GPIO_PA_EN
|
|
|
|
|
|
Port_Write(GPIO_PA_EN, false); |
|
|
|
|
|
#endif
|
|
|
|
|
|
#ifdef GPIO_HP_EN
|
|
|
|
|
|
Port_Write(GPIO_HP_EN, false); |
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
System_Sleeping = true; |
|
|
System_Sleeping = true; |
|
|
Log_Println((char *) FPSTR(goToSleepNow), LOGLEVEL_NOTICE); |
|
|
Log_Println((char *) FPSTR(goToSleepNow), LOGLEVEL_NOTICE); |
|
|
|
|
|
|
|
|