-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conditional compile cleanup leftovers #230
Conversation
WalkthroughThe pull request introduces significant code simplification across multiple files in the Trezor firmware. The changes primarily focus on removing conditional compilation related to production models, streamlining display and bootloader functionality. The modifications remove model-specific logic, reducing code complexity and creating a more uniform implementation across different device configurations. Changes
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Signed-off-by: Adam BZH <[email protected]>
0cc65c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🔭 Outside diff range comments (1)
core/embed/bootloader/bootui.c (1)
Line range hint
432-486
: Add touch input validation.The ui_input_poll function needs bounds checking for touch coordinates and debouncing for multiple clicks.
🧹 Nitpick comments (1)
core/embed/bootloader/bootui.c (1)
Line range hint
577-589
: Fix spelling: "avaliable" → "available"- "avaliable! The current version is", -1, FONT_NORMAL, + "available! The current version is", -1, FONT_NORMAL,
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
core/embed/bootloader/bootui.c
(1 hunks)core/embed/bootloader/main.c
(0 hunks)core/embed/extmod/modtrezorconfig/norcow_config.h
(0 hunks)core/embed/extmod/modtrezorui/display.c
(0 hunks)
💤 Files with no reviewable changes (3)
- core/embed/extmod/modtrezorconfig/norcow_config.h
- core/embed/bootloader/main.c
- core/embed/extmod/modtrezorui/display.c
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Gen check
- GitHub Check: Defs check
- GitHub Check: Style check
🔇 Additional comments (2)
core/embed/bootloader/bootui.c (2)
44-49
: LGTM! Header includes are well-organized.
Line range hint
102-111
: Add version component validation.The format_ver function should validate version components before formatting.
Summary by CodeRabbit
Release Notes
Refactor
Removed Features
Note: These changes may impact device-specific functionality and display capabilities.