Repository navigation
fix(pl18): add timeout to isChargerActive() to prevent hang when batt… - #7468
Conversation
…ery missing Add 2-second timeout to the blocking charger detection loops in isChargerActive(). When no battery is installed and the radio is USB-powered, the TP5100 charger IC status pins can oscillate due to capacitive-load charge/discharge cycling. This causes the consecutive-sample debounce counter in chargerDetection() to perpetually reset, hanging the boot before LCD initialization results in a blank screen. Fixes EL18 blank screen when powered via USB without batteries.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough
ChangesCharger Detection Timeout
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
|
This PR fixes #7442, awesome job Richard! |
…ery missing
Add 2-second timeout to the blocking charger detection loops in isChargerActive(). When no battery is installed and the radio is USB-powered, the TP5100 charger IC status pins can oscillate due to capacitive-load charge/discharge cycling. This causes the consecutive-sample debounce counter in chargerDetection() to perpetually reset, hanging the boot before LCD initialization results in a blank screen.
Fixes EL18 blank screen when powered via USB without batteries.
Summary by CodeRabbit