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

app: main: add main function #90

Merged
merged 1 commit into from
Mar 6, 2025
Merged

app: main: add main function #90

merged 1 commit into from
Mar 6, 2025

Conversation

DematteisGiacomo
Copy link
Collaborator

Add a main thread with zbus subscriber instead of callback.

Add a main thread with zbus subscriber instead of callback.

Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
Copy link

sonarqubecloud bot commented Mar 6, 2025

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🎯 Core Changes

  • Introduced a main function with a zbus subscriber, replacing the previous callback mechanism.
  • Added configurations for watchdog and message processing timeouts in Kconfig.main.
  • Modified the main.c file to use a state machine approach for handling different states of the application.
  • Updated the test setup to accommodate the new main function structure.

⚠️ Concerns

  • None identified.

Verdict:

  • Approve: The changes are well-structured and improve the modularity and maintainability of the application by using a state machine and zbus subscriber approach.

Code review performed by OPENAI - gpt-4o.

@DematteisGiacomo DematteisGiacomo merged commit e00c35a into main Mar 6, 2025
5 checks passed
@DematteisGiacomo DematteisGiacomo deleted the add_main_function branch March 6, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant