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

fix wrong running status in app.h if start an app after stop it. #23099

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

Conversation

oneWayOut
Copy link
Contributor

Solved Problem

I found that if I start hello example in the console, stop it, and start it again, the status is still running. Just like below:

pxh> hello start
hello starting.
hello
pxh> hello  Doing work...
pxh> hello stop
pxh> Doing work...
goodbye
pxh> hello start
INFO  [hello] already running

pxh> hello status
INFO  [hello] is running

The problem could be showed in nsh shell also.

Solution

  • Using a single variable instead of two to indicate the running status in app.h, which can solve the problem.

Context

This problem was reported before: https://discuss.px4.io/t/px4-hello-example-cannot-exit/33682

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.

None yet

1 participant