Skip to content

Commit

Permalink
adapt drawDeepSleepScreen to new screensaver convention
Browse files Browse the repository at this point in the history
  • Loading branch information
todd-herbert committed Mar 25, 2024
1 parent 20521e1 commit 719026d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/graphics/Screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ static void drawDeepSleepScreen(OLEDDisplay *display, OLEDDisplayUiState *state,

LOG_DEBUG("Drawing deep sleep screen\n");
drawIconScreen("Sleeping...", display, state, x, y);
screen->forceDisplay();
}

/// Used on eink displays when screen turns off for powersaving
Expand Down Expand Up @@ -1418,6 +1419,7 @@ void Screen::handleShutdownScreen()
LOG_DEBUG("showing shutdown screen\n");
showingNormalScreen = false;
EINK_ADD_FRAMEFLAG(dispdev, DEMAND_FAST); // E-Ink: Explicitly use fast-refresh for next frame
EINK_ADD_FRAMEFLAG(dispdev, BLOCKING); // Edge case: if this frame is also flagged cosmetic, wait for update

auto frame = [](OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y) -> void {
drawFrameText(display, state, x, y, "Shutting down...");
Expand Down

0 comments on commit 719026d

Please sign in to comment.