Handle edge cases for E-Ink screensaver (#3518)

* remove redundant logic

* Handle special screens for old EInkDisplayClass

* Handle special screens for EInkDynamicDisplay class

* Join an async refresh in progress to avoid skipping screensaver

* attempt trunk fix
This commit is contained in:
todd-herbert
2024-04-01 01:04:05 +13:00
committed by GitHub
parent 279464f96d
commit 46a63bf293
5 changed files with 57 additions and 11 deletions

View File

@@ -150,7 +150,7 @@ class Screen : public concurrency::OSThread
// We handle off commands immediately, because they might be called because the CPU is shutting down
handleSetOn(false, einkScreensaver);
else
enqueueCmd(ScreenCmd{.cmd = on ? Cmd::SET_ON : Cmd::SET_OFF});
enqueueCmd(ScreenCmd{.cmd = Cmd::SET_ON});
}
/**