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

Only log "Setting DIO2 as RF switch" when doing so and fix battery level #4892

Merged
merged 2 commits into from
Sep 28, 2024

Conversation

dahanc
Copy link
Contributor

@dahanc dahanc commented Sep 28, 2024

…do it. Also, if there's an error setting DIO2, log the error code.

Super minor, but I mentioned this in Discord a few days ago, and it seemed like @jp-bennett thought it was a good idea?

…do it. Also, if there's an error setting DIO2, log the error code.
…evel if there's no Lipo sensor, just have lipoInit return false. The forwarding didn't work because it never called analogInit.
@GUVWAF GUVWAF changed the title Don't log "Setting DIO2 as RF switch" unless we're actually going to … Only log "Setting DIO2 as RF switch" when doing so and fix battery level Sep 28, 2024
@GUVWAF
Copy link
Member

GUVWAF commented Sep 28, 2024

This indeed fixes battery level values of -0.00 for boards without MAX17048.

@dhskinner can you double-check if the MAX17048 still works for you when using this?

@dahanc
Copy link
Contributor Author

dahanc commented Sep 28, 2024

Oops, I'm not good at GitHub; I didn't actually intend for the battery level commit to be included in this PR. I guess I should've made the changes on separate branches?

@GUVWAF
Copy link
Member

GUVWAF commented Sep 28, 2024

@dahanc No worries, since the first one is pretty small, I think it's okay like this.

@caveman99 caveman99 merged commit 1f08401 into meshtastic:master Sep 28, 2024
38 checks passed
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.

3 participants