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

main: fix error printing in app_main #341

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

stintel
Copy link
Collaborator

@stintel stintel commented Dec 13, 2023

We're assigning the return value of several functions to the variable ret, but when there's an error we print the name of err. As app_main doesn't return anything, drop the ret variable completely and use err everywhere.

Fixes: 36ee1f7 ("main: read Wi-Fi credentials from NVS")
Fixes: ae43147 ("main: get WAS URL from NVS")

We're assigning the return value of several functions to the variable
ret, but when there's an error we print the name of err. As app_main
doesn't return anything, drop the ret variable completely and use err
everywhere.

Fixes: 36ee1f7 ("main: read Wi-Fi credentials from NVS")
Fixes: ae43147 ("main: get WAS URL from NVS")
@kristiankielhofner kristiankielhofner merged commit 331e20a into main Dec 14, 2023
15 checks passed
@kristiankielhofner kristiankielhofner deleted the fix/app_main_error_printing branch December 14, 2023 12:53
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