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

hal: Handle not being able to set the SUPL server. #44

Merged
merged 1 commit into from Jan 11, 2023

Conversation

MagneFire
Copy link
Contributor

e982cf9 added support for overriding/setting the SUPL server. This could however lead to a crash when AGPS isn't actually available. Handle this by returning an error instead of crashing.

Signed-off-by: Darrel Griët dgriet@gmail.com

@mlehtima
Copy link
Contributor

Otherwise looks good but in other places the code uses "if (m_agps)" style so maybe you could follow that style and return 0 at the end after having the current code inside "if (m_agps)"?

mer-hybris@e982cf9 added support for overriding/setting the SUPL server.
This could however lead to a crash when AGPS isn't actually available. Handle this by returning an error instead of crashing.

Signed-off-by: Darrel Griët <dgriet@gmail.com>
@MagneFire
Copy link
Contributor Author

Thanks for the quick review!

Great finding on the consistency of the code styling. I've adjusted it to be conform with the style of the other functions.

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.

None yet

2 participants