mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 16:06:54 +01:00
- apconfig: configure night time, where the system is not updating tags, and the tags are sleeping - fixed bug calculating expected checkin - throttle down apinfo update to once per minute - fixed too many concurrent requests getting tagtypes - resend current image when a tag reboots and the content type is 'static image' (all other content types were already regenerating the content) - fixed timing of main loop
43 lines
571 B
C++
43 lines
571 B
C++
#ifndef _DYN_STORAGE_H_
|
|
#define _DYN_STORAGE_H_
|
|
|
|
#include "FS.h"
|
|
|
|
#ifdef HAS_SDCARD
|
|
#ifndef SD_CARD_SS
|
|
#error SD_CARD_SS UNDEFINED
|
|
#endif
|
|
|
|
#ifndef SD_CARD_CLK
|
|
#define SD_CARD_CLK 18
|
|
#endif
|
|
|
|
#ifndef SD_CARD_MISO
|
|
#define SD_CARD_MISO 19
|
|
#endif
|
|
|
|
#ifndef SD_CARD_MOSI
|
|
#define SD_CARD_MOSI 23
|
|
#endif
|
|
#endif
|
|
|
|
class DynStorage {
|
|
public:
|
|
DynStorage();
|
|
void begin();
|
|
void end();
|
|
void listFiles();
|
|
size_t freeSpace();
|
|
|
|
private:
|
|
bool isInited;
|
|
};
|
|
|
|
extern DynStorage Storage;
|
|
extern fs::FS *contentFS;
|
|
extern void copyFile(File in, File out);
|
|
|
|
#endif
|
|
|
|
|