Skip to content

Skip loading screen on button wake-up#306

Open
oetiker wants to merge 1 commit intousetrmnl:mainfrom
oetiker:fix/skip-loading-screen-on-button-wake
Open

Skip loading screen on button wake-up#306
oetiker wants to merge 1 commit intousetrmnl:mainfrom
oetiker:fix/skip-loading-screen-on-button-wake

Conversation

@oetiker
Copy link
Copy Markdown
Contributor

@oetiker oetiker commented Feb 7, 2026

Summary

  • Remove the display_show_image() call on button wake-up in bl.cpp, eliminating one full e-ink refresh
  • On color panels (Spectra 6), bWait=1 is forced for all refreshes, making the loading logo display very slow — pressing the wake button previously caused two slow full refreshes back-to-back
  • Now the device goes directly to downloading and displaying the new image (1 refresh instead of 2)

Details

The preference resets (PREFERENCES_DEVICE_REGISTERED_KEY, PREFERENCES_FILENAME_KEY) and need_to_refresh_display flag are preserved, so the download logic works unchanged. If the download fails, existing error handling already shows the appropriate message (MSG_TOO_BIG, WIFI_FAILED, FRIENDLY_ID, etc.).

Test plan

  • Flash firmware to reTerminal E1002 (Spectra 6 panel)
  • Press the wake/reset button — display should go directly to downloading new content without first showing loading logo
  • Disconnect WiFi and press wake button — verify appropriate error message is displayed
  • Verify timer-based wake-up is unaffected

🤖 Generated with Claude Code

On color e-ink panels (Spectra 6), the forced full refresh (bWait=1)
makes the loading logo display very slow. Pressing the wake button
previously triggered two full refreshes back-to-back: first the loading
logo, then the actual content from the API.

Remove the display_show_image() call on button wake-up so the device
goes directly to downloading and displaying the new image. Error
handling paths already show appropriate messages, so no content is lost.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant