Skip to content

Commit

Permalink
Merge pull request #427 from mathoudebine/fix/419-static-dataimage-up…
Browse files Browse the repository at this point in the history
…date-on-pc-wake-up
  • Loading branch information
mathoudebine authored Dec 22, 2023
2 parents 73a7dd3 + 408711c commit d038a91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ def on_win32_wm_event(hWnd, msg, wParam, lParam):
elif wParam == win32con.PBT_APMRESUMEAUTOMATIC:
logger.info("Computer is resuming from sleep, display will turn on")
display.turn_on()
# Some models have troubles displaying back the previous bitmap after being turned off/on
display.display_static_images()
display.display_static_text()
else:
# For any other events, the program will stop
logger.info("Program will now exit")
Expand Down

0 comments on commit d038a91

Please sign in to comment.