view1090.h only used in aircraftlist and appdata now

Former-commit-id: 6363362a52bb693ec01d8bb683d6a43065e71d9a
Former-commit-id: 924f30949e039d9c7ee4cde6bac7606069024075
This commit is contained in:
nathan 2020-03-20 22:12:45 -07:00
parent e78f3c4e0f
commit 2a0f6e01eb
4 changed files with 5 additions and 8 deletions

View file

@ -1,10 +1,7 @@
#include "Aircraft.h"
#include "dump1090.h" //for struct aircaft
Aircraft::Aircraft(struct aircraft *a) {
addr = a->addr;
Aircraft::Aircraft(uint32_t addr) {
this->addr = addr;
created = 0;
prev_seen = 0;

View file

@ -42,6 +42,6 @@ public:
/// methods
Aircraft(struct aircraft *a);
Aircraft(uint32_t addr);
~Aircraft();
};

View file

@ -36,7 +36,7 @@ void AircraftList::update(Modes *modes) {
p = find(a->addr);
if (!p) {
//p = createPlaneObj(a);
p = new Aircraft(a);
p = new Aircraft(a->addr);
p->next = head;
head = p;
} else {

View file

@ -1 +1 @@
35e0993090bbfbe86d9367ce99c671435554d2ac
884676a0069dc93832d407eea2d3e612de57d44a