Navigation Menu

Skip to content

Commit

Permalink
Fix gps not creating the tracked locations
Browse files Browse the repository at this point in the history
  • Loading branch information
dragorn committed Jul 6, 2018
1 parent db4cb81 commit 72a80a5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions kis_gps.cc
Expand Up @@ -29,16 +29,20 @@ KisGps::KisGps(SharedGpsBuilder in_builder) :
reserve_fields(NULL);

// Force the ID
tracked_id = Globalreg::globalreg->entrytracker->RegisterField("kismet.gps.instance",
TrackerElementFactory<TrackerElementMap>(),
"GPS");
set_id(Globalreg::globalreg->entrytracker->RegisterField("kismet.gps.instance",
TrackerElementFactory<TrackerElementMap>(), "GPS"));

// Link the builder
gps_prototype = in_builder;
insert(gps_prototype);

gps_location = new kis_gps_packinfo();
gps_last_location = new kis_gps_packinfo();

tracked_location =
std::make_shared<kis_tracked_location_triplet>(tracked_location_id);
tracked_last_location =
std::make_shared<kis_tracked_location_triplet>(tracked_last_location_id);
}

KisGps::~KisGps() {
Expand Down

0 comments on commit 72a80a5

Please sign in to comment.