Commit 01e5682e authored by dogmaphobic's avatar dogmaphobic

Small build fix for mobile (Android and iOS).

parent 628a059b
...@@ -242,12 +242,14 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(), ...@@ -242,12 +242,14 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
*/ */
UAS::~UAS() UAS::~UAS()
{ {
#ifndef __mobile__
stopHil(); stopHil();
if (simulation) { if (simulation) {
// wait for the simulator to exit // wait for the simulator to exit
simulation->wait(); simulation->wait();
simulation->deleteLater(); simulation->deleteLater();
} }
#endif
writeSettings(); writeSettings();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment