Various fixes

- bugfix not recognizing identical image
https://github.com/jjwbruijn/OpenEPaperLink/issues/255
- Count number of updates
https://github.com/jjwbruijn/OpenEPaperLink/issues/247
- Optionally align interval of RSS/calendar/etc
https://github.com/jjwbruijn/OpenEPaperLink/issues/106
This commit is contained in:
Nic Limper
2024-03-18 16:39:44 +01:00
parent 68d75782ba
commit 59e2a5eeb8
7 changed files with 50 additions and 29 deletions

View File

@@ -13,4 +13,5 @@
// flasher options
#define CUSTOM_MAC_HDR 0x0000
#define MAX_XFER_ATTEMPTS 20
#define MAX_WRITE_ATTEMPTS 5

View File

@@ -15,7 +15,7 @@
#define NO_SUBGHZ_CHANNEL 255
class tagRecord {
public:
tagRecord() : mac{0}, version(0), alias(""), lastseen(0), nextupdate(0), contentMode(0), pendingCount(0), md5{0}, expectedNextCheckin(0), modeConfigJson(""), LQI(0), RSSI(0), temperature(0), batteryMv(0), hwType(0), wakeupReason(0), capabilities(0), lastfullupdate(0), isExternal(false), apIp(IPAddress(0, 0, 0, 0)), pendingIdle(0), hasCustomLUT(false), rotate(0), lut(0), tagSoftwareVersion(0), currentChannel(0), dataType(0), filename(""), data(nullptr), len(0), invert(0) {}
tagRecord() : mac{0}, version(0), alias(""), lastseen(0), nextupdate(0), contentMode(0), pendingCount(0), md5{0}, expectedNextCheckin(0), modeConfigJson(""), LQI(0), RSSI(0), temperature(0), batteryMv(0), hwType(0), wakeupReason(0), capabilities(0), lastfullupdate(0), isExternal(false), apIp(IPAddress(0, 0, 0, 0)), pendingIdle(0), hasCustomLUT(false), rotate(0), lut(0), tagSoftwareVersion(0), currentChannel(0), dataType(0), filename(""), data(nullptr), len(0), invert(0), updateCount(0) {}
uint8_t mac[8];
uint8_t version;
@@ -44,6 +44,7 @@ class tagRecord {
uint16_t tagSoftwareVersion;
uint8_t currentChannel;
uint8_t invert;
uint32_t updateCount;
uint8_t dataType;
String filename;