fix(legacy): fix the display issue and respond to the client side can…#145
fix(legacy): fix the display issue and respond to the client side can…#145somebodyLi merged 1 commit intomasterfrom
Conversation
WalkthroughThe updates introduce safer macro usage for key handling. They add early exit checks for abort conditions in macros. Key input handling now uses a unified macro across the codebase. Some minor code cleanups and missing semicolons are fixed. No changes affect public interfaces. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI_Function
participant WAIT_KEY_OR_ABORT
participant protectWaitKey
participant System
User->>UI_Function: Triggers action needing input
UI_Function->>WAIT_KEY_OR_ABORT: Wait for key input
WAIT_KEY_OR_ABORT->>protectWaitKey: Get key input
protectWaitKey-->>WAIT_KEY_OR_ABORT: Return key
WAIT_KEY_OR_ABORT->>UI_Function: If abort flag set, return false
WAIT_KEY_OR_ABORT->>UI_Function: Else, continue with key
UI_Function->>System: Continue processing or abort
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Graph Analysis (1)legacy/firmware/layout2.c (2)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (17)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
…cellation
Summary by CodeRabbit