mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 04:06:29 +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;
|
const bool isAp = memcmp(taginfo->mac, wifimac, 8) == 0;
|
||||||
if (taginfo->RSSI &&
|
if (taginfo->RSSI &&
|
||||||
(now >= taginfo->nextupdate || needRedraw(taginfo->contentMode, taginfo->wakeupReason)) &&
|
(now >= taginfo->nextupdate || needRedraw(taginfo->contentMode, taginfo->wakeupReason)) &&
|
||||||
config.runStatus == RUNSTATUS_RUN && (taginfo->expectedNextCheckin < now + 300 || isAp) &&
|
config.runStatus == RUNSTATUS_RUN &&
|
||||||
Storage.freeSpace() > 31000 && !util::isSleeping(config.sleepTime1, config.sleepTime2)) {
|
(taginfo->expectedNextCheckin < now + 300 || isAp || (wsClientCount() && config.stopsleep == 1)) &&
|
||||||
drawNew(taginfo->mac, taginfo);
|
Storage.freeSpace() > 31000 && !util::isSleeping(config.sleepTime1, config.sleepTime2)) {
|
||||||
taginfo->wakeupReason = 0;
|
drawNew(taginfo->mac, taginfo);
|
||||||
|
taginfo->wakeupReason = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (taginfo->expectedNextCheckin > now - 10 && taginfo->expectedNextCheckin < now + 30 && taginfo->pendingIdle == 0 && taginfo->pendingCount == 0 && !isAp) {
|
if (taginfo->expectedNextCheckin > now - 10 && taginfo->expectedNextCheckin < now + 30 && taginfo->pendingIdle == 0 && taginfo->pendingCount == 0 && !isAp) {
|
||||||
|
|||||||
Reference in New Issue
Block a user