This commit is contained in:
e2002
2023-06-06 13:55:13 +03:00
parent 2f71c1859c
commit caa5cb78c7
8 changed files with 141 additions and 11 deletions

View File

@@ -6,6 +6,7 @@
#include <SPIFFS.h>
#include "SD.h"
#include "options.h"
#include "rtcsupport.h"
#define EEPROM_SIZE 768
#define EEPROM_START 500
@@ -220,11 +221,17 @@ class Config {
void clearCardStatus() { if(_cardStatus!=CS_NONE) _cardStatus=CS_NONE; }
bool spiffsCleanup();
FS* SDPLFS(){ return _SDplaylistFS; }
#if RTCSUPPORTED
bool isRTCFound(){ return _rtcFound; };
#endif
private:
template <class T> int eepromWrite(int ee, const T& value);
template <class T> int eepromRead(int ee, T& value);
cardStatus_e _cardStatus;
bool _bootDone;
#if RTCSUPPORTED
bool _rtcFound;
#endif
FS* _SDplaylistFS;
void setDefaults();
Ticker _sleepTimer;