fix: resolved the issue of layer1 flickering when scrolling down #395
fix: resolved the issue of layer1 flickering when scrolling down #395guowei0105 merged 2 commits intoOneKeyHQ:mainfrom
Conversation
…irst time after booting up
WalkthroughAdds LTDC layer-1 reconfiguration when hiding Layer2 in the LCD driver and refactors homescreen Layer2 handling into a new Layer2Manager instance with related constants and instance-based APIs; also adds a docstring before a display function declaration. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting Disabled knowledge base sources:
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
Comment |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Actionable comments posted: 4
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
core/src/trezor/lvglui/scrs/homescreen.py (1)
154-185: Catching bareExceptionhides real errors.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to data retention organization setting
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
⛔ Files ignored due to path filters (1)
core/mocks/generated/trezorui.pyiis excluded by!**/generated/**
📒 Files selected for processing (2)
core/embed/extmod/modtrezorui/mipi_lcd.c(1 hunks)core/src/trezor/lvglui/scrs/homescreen.py(13 hunks)
🧰 Additional context used
🪛 Ruff (0.14.4)
core/src/trezor/lvglui/scrs/homescreen.py
666-666: Do not catch blind exception: Exception
(BLE001)
1277-1277: Do not catch blind exception: Exception
(BLE001)
🔇 Additional comments (1)
core/embed/extmod/modtrezorui/mipi_lcd.c (1)
1196-1197: Verify negative window coordinate validity.Line 1196 sets
config.y0 = -((int32_t)lcd_params.vres)(negative value). When this gets assigned to the STM32 HAL'sWindowY0(uint32_t), it converts to a very large positive number via two's complement. Confirm STM32H745 LTDC hardware accepts negative-derived coordinates or if this should use unsigned positive values instead.[web]
Do STM32H745 LTDC layer window coordinates (WHPCR/WVPCR registers) support or require non-negative values?</blockquote></details> </blockquote></details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
…irst time after booting up
Summary by CodeRabbit
Bug Fixes
Refactor
Documentation