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

Recursive calls to main_menu function #2

Open
brettski74 opened this issue May 19, 2022 · 0 comments
Open

Recursive calls to main_menu function #2

brettski74 opened this issue May 19, 2022 · 0 comments

Comments

@brettski74
Copy link
Owner

There are numerous calls to main_menu() littered throughout the code. Since these calls all originate in functions that were themselves called from main_menu(), we have some infinite recursion going on. While it seems unlikely that the reflow plate would continue running long enough to exhaust the stack, it's unlikely that anything good will result if these recursive calls do eventually exhaust the stack. Code should be refactored to use the loop() function and operate as a state machine.

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

No branches or pull requests

1 participant