Browse Source

Vehicle: Use QElapsedTimer over deprecated QTime::start

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 5 years ago
parent
commit
8cdc908868
  1. 3
      src/Vehicle/Vehicle.h

3
src/Vehicle/Vehicle.h

@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
#pragma once
#include <QElapsedTimer>
#include <QObject>
#include <QVariantList>
#include <QGeoCoordinate>
@ -1515,7 +1516,7 @@ private: @@ -1515,7 +1516,7 @@ private:
QString _gitHash;
quint64 _uid;
QTime _lastBatteryAnnouncement;
QElapsedTimer _lastBatteryAnnouncement;
int _lastAnnouncedLowBatteryPercent;
SharedLinkInterfacePointer _priorityLink; // We always keep a reference to the priority link to manage shutdown ordering

Loading…
Cancel
Save