mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 22:24:47 +08:00
PX4Flow: allow restart directly after stop
This commit is contained in:
committed by
Lorenz Meier
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;
|
||||
|
||||
Reference in New Issue
Block a user