diff --git a/owlps-positioning/src/stock.cc b/owlps-positioning/src/stock.cc index ce4a12e..194bde9 100644 --- a/owlps-positioning/src/stock.cc +++ b/owlps-positioning/src/stock.cc @@ -445,6 +445,11 @@ void Stock::regenerate_reference_points() { Point3D current_point(x,y,z) ; + // If the point is the coordinates of an existing AP, we don't + // need to generate it + if (is_ap_coordinate(current_point)) + continue ; + for (unordered_map::const_iterator rx = aps.begin() ; rx != aps.end() ; ++rx) {