diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 5abecb5248f9abd1e76ff23078ced08444de6ba2..50009d5c8446bfd3e79e6ff4b165af7afd1dadc4 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -242,12 +242,14 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(), */ UAS::~UAS() { +#ifndef __mobile__ stopHil(); if (simulation) { // wait for the simulator to exit simulation->wait(); simulation->deleteLater(); } +#endif writeSettings(); }