mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
Don't delay content generate when shorten latency is enabled and user is connected.
This commit is contained in:
@@ -64,10 +64,11 @@ void contentRunner() {
|
||||
const bool isAp = memcmp(taginfo->mac, wifimac, 8) == 0;
|
||||
if (taginfo->RSSI &&
|
||||
(now >= taginfo->nextupdate || needRedraw(taginfo->contentMode, taginfo->wakeupReason)) &&
|
||||
config.runStatus == RUNSTATUS_RUN && (taginfo->expectedNextCheckin < now + 300 || isAp) &&
|
||||
Storage.freeSpace() > 31000 && !util::isSleeping(config.sleepTime1, config.sleepTime2)) {
|
||||
drawNew(taginfo->mac, taginfo);
|
||||
taginfo->wakeupReason = 0;
|
||||
config.runStatus == RUNSTATUS_RUN &&
|
||||
(taginfo->expectedNextCheckin < now + 300 || isAp || (wsClientCount() && config.stopsleep == 1)) &&
|
||||
Storage.freeSpace() > 31000 && !util::isSleeping(config.sleepTime1, config.sleepTime2)) {
|
||||
drawNew(taginfo->mac, taginfo);
|
||||
taginfo->wakeupReason = 0;
|
||||
}
|
||||
|
||||
if (taginfo->expectedNextCheckin > now - 10 && taginfo->expectedNextCheckin < now + 30 && taginfo->pendingIdle == 0 && taginfo->pendingCount == 0 && !isAp) {
|
||||
|
||||
Reference in New Issue
Block a user