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

Menu: improve ergonomy #145

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ptibibi
Copy link
Contributor

@Ptibibi Ptibibi commented Nov 11, 2024

Menu: improve ergonomy

Software/src/constants/Menu.h

Split Menu to Menu + MenuSettings

Software/src/ossm/OSSM.Menu.cpp

Simplify code to select menu option
Move draw code in a new fonction
Create function task to manage and draw MenuSettings

Software/src/ossm/OSSM.h

Task transition:

  • Split Menu task to Menu + MenuSettings tasks

MenuSettings:

  • Create transitions
  • Create task to draw MenuSettings
  • Define MenuSettings function and variables

Software/src/services/tasks.h

Define MenuSettings task

@Ptibibi Ptibibi changed the title Ptibibi/improve menu code Menu: improve ergonomy Nov 11, 2024
Copy link
Collaborator

@AJ-Koenig AJ-Koenig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Seems like a nice clean up.

Code is approved, but I cannot test this right now. @armpitMFG - might need a test from you as well.

Simplify code for encoder management
Simplify code to make a menu loop
Split code to select menu option and drawing menu

Signed-off-by: benoit bobert <benoit.robert.dev@gmail.com>
Create an sub-menu for settings
Move settings selection from Menu to MenuSettings

Signed-off-by: benoit bobert <benoit.robert.dev@gmail.com>
@Ptibibi Ptibibi force-pushed the ptibibi/improve_menu_code branch from 26feb9d to af0ca52 Compare November 27, 2024 20:01
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