PX4Flow: allow restart directly after stop

This commit is contained in:
Julien Lecoeur 2017-06-15 18:40:27 +02:00 committed by Lorenz Meier
parent 7a3a9a75d5
commit 41cc679258
1 changed files with 2 additions and 0 deletions

View File

@ -833,6 +833,8 @@ start(int argc, char *argv[])
void
stop()
{
start_in_progress = false;
if (g_dev != nullptr) {
delete g_dev;
g_dev = nullptr;