From 4d9484af5768c0c8103faaf92d9d5a2c83a46f4e Mon Sep 17 00:00:00 2001 From: jpirnay Date: Wed, 8 Apr 2026 12:10:52 +0200 Subject: [PATCH] Add mutex to SleepActivity --- src/activities/boot_sleep/SleepActivity.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/activities/boot_sleep/SleepActivity.cpp b/src/activities/boot_sleep/SleepActivity.cpp index 38ebc3d2..8a473fd3 100644 --- a/src/activities/boot_sleep/SleepActivity.cpp +++ b/src/activities/boot_sleep/SleepActivity.cpp @@ -350,6 +350,7 @@ size_t pickSleepImageIndex(size_t numFiles) { void SleepActivity::onEnter() { Activity::onEnter(); + RenderLock lock(*this); // For OVERLAY mode the popup is suppressed so the frame buffer (reader page) stays intact if (SETTINGS.sleepScreen != CrossPointSettings::SLEEP_SCREEN_MODE::OVERLAY) { GUI.drawPopup(renderer, tr(STR_ENTERING_SLEEP));