Skip to content
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

Fix startup crash on externally powered device (Axp) #145

Closed
wants to merge 2 commits into from

Conversation

wswag
Copy link
Contributor

@wswag wswag commented Jan 9, 2024

deleted line SetPeripheralsPower(true) within AXP192::begin() code which causes PowerOff on M5Core2 hardware powered externally via 5V Bus w/o USB cable connected.

The crash is caused by setting EXTEN to 1 within this statement before checking VBUS status if no usb cable is connected. The statement is completely obsolete as EXTEN will be enabled correctly anyway if v-bus status indicates that internal power is required (directly within the following if-statement).

Tested with ext. power, bat power and USB all doing well now.

@Tinyu-Zhao
Copy link
Collaborator

This PR does not have any substantive code changes....
close

@Tinyu-Zhao Tinyu-Zhao closed this Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants