Fix generic spi graphics setup#3287
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis change addresses two bugs in the SPI display driver: corrects the sleep delay calculation in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Fixes two correctness issues in the Generic_SPI display driver so that generic SPI-based display initialization behaves as intended (sleep delays actually delay, and configured dimensions map to the correct attribute side).
Changes:
- Fix sleep-delay handling in
ProcessCommand()by removing unintended multiplication by the command enum value. - Fix
SetupDisplayAttributes()to apply configuredHeighttoAttributes.ShorterSide(and remove a stray semicolon).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Fixes two issues in Generic_SPI graphic driver.
Motivation and Context
Discovered during development. Breakout to own PR.
General improvements and bug fixes.
How Has This Been Tested?
On an ESP32_S3 Feather and Ili9488 display
Screenshots
Types of changes
Checklist
Summary by CodeRabbit
Bug Fixes