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

avoid stack overflow from power_on calling hard_reset #1

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

diekleinekuh
Copy link

@diekleinekuh diekleinekuh commented Oct 4, 2023

power_on was calling hard_reset which called power_on again. This caused the stack overflow we saw for the last months.

I removed the call to power_on from hard_reset and also removed the reset_calls from power_on. Instead I placed those calls explicitely where needed.

I tested this on Niro100 and it still seems to connect as it did before. So it think it will not make things any worse.

@diekleinekuh diekleinekuh marked this pull request as ready for review October 4, 2023 09:56
@diekleinekuh diekleinekuh merged commit 38aba12 into fix-r5 Oct 5, 2023
4 of 5 checks passed
@diekleinekuh diekleinekuh deleted the fix_stack_overflow branch October 5, 2023 08:37
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