Skip to content

Commit d038a91

Browse files
authored
Merge pull request #427 from mathoudebine/fix/419-static-dataimage-update-on-pc-wake-up
2 parents 73a7dd3 + 408711c commit d038a91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ def on_win32_wm_event(hWnd, msg, wParam, lParam):
142142
elif wParam == win32con.PBT_APMRESUMEAUTOMATIC:
143143
logger.info("Computer is resuming from sleep, display will turn on")
144144
display.turn_on()
145+
# Some models have troubles displaying back the previous bitmap after being turned off/on
146+
display.display_static_images()
147+
display.display_static_text()
145148
else:
146149
# For any other events, the program will stop
147150
logger.info("Program will now exit")

0 commit comments

Comments
 (0)