yaclf
This commit is contained in:
@@ -362,10 +362,9 @@ void SleepActivity::onEnter() {
|
|||||||
// page is fully cleared. The full sync triggered by requestResync drives the panel to a
|
// page is fully cleared. The full sync triggered by requestResync drives the panel to a
|
||||||
// clean white state; the sleep screen is then drawn on top without residual ghost content.
|
// clean white state; the sleep screen is then drawn on top without residual ghost content.
|
||||||
// Skipped for OVERLAY (frame buffer must stay intact) and BLANK (already renders white).
|
// Skipped for OVERLAY (frame buffer must stay intact) and BLANK (already renders white).
|
||||||
const bool needsX3PreFlash =
|
const bool needsX3PreFlash = gpio.deviceIsX3() &&
|
||||||
gpio.deviceIsX3() &&
|
SETTINGS.sleepScreen != CrossPointSettings::SLEEP_SCREEN_MODE::OVERLAY &&
|
||||||
SETTINGS.sleepScreen != CrossPointSettings::SLEEP_SCREEN_MODE::OVERLAY &&
|
SETTINGS.sleepScreen != CrossPointSettings::SLEEP_SCREEN_MODE::BLANK;
|
||||||
SETTINGS.sleepScreen != CrossPointSettings::SLEEP_SCREEN_MODE::BLANK;
|
|
||||||
if (needsX3PreFlash) {
|
if (needsX3PreFlash) {
|
||||||
renderer.clearScreen();
|
renderer.clearScreen();
|
||||||
display.requestResync(1);
|
display.requestResync(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user