Fix RAK4631 hang when I2C WisBlock modules are present#2380
Draft
benders wants to merge 1 commit intomeshcore-dev:devfrom
Draft
Fix RAK4631 hang when I2C WisBlock modules are present#2380benders wants to merge 1 commit intomeshcore-dev:devfrom
benders wants to merge 1 commit intomeshcore-dev:devfrom
Conversation
WB_IO2 controls the 3V3_S switched peripheral rail on RAK base boards. gpsIsAwake() left the pin as INPUT on failure, dropping the rail and resetting the SSD1306 display. Centralize rail control via PIN_3V3_EN, restore it after GPS probing, re-init the display before UI start, and disable the rail on shutdown. Fixes meshcore-dev#1874 Refs meshcore-dev#2222 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change fixes a problem where the RAK4631 will hang on startup when I2C based WisBlock modules are present. These can be sensors or the RAK OLED display.
WB_IO2 controls the 3V3_S switched peripheral rail on RAK base boards. gpsIsAwake() left the pin as INPUT on failure, dropping the power rail. Then, when the I2C devices were probed, they couldn't respond and so the boot process hung. This fixes that by making the power rail code match that on the RAK3401, and making sure to restore it after GPS probing, re-init the display before UI start, and disable the 3V3_S rail on shutdown.
Fixes #1874
Refs #2222 and #2215