forked from Archive/PX4-Autopilot
PX4Flow: allow restart directly after stop
This commit is contained in:
parent
7a3a9a75d5
commit
41cc679258
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue