From 4aa06762d45ba934172e65fcb063236e8f9cb96c Mon Sep 17 00:00:00 2001 From: frederic wagner Date: Tue, 3 Jan 2023 09:30:46 +0100 Subject: [PATCH] gipy: minor fix --- apps/gipy/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/gipy/app.js b/apps/gipy/app.js index 0a53a12b1..9e3d95295 100644 --- a/apps/gipy/app.js +++ b/apps/gipy/app.js @@ -784,6 +784,7 @@ function start_gipy(filename, path_data) { let status = new Status(path); if (simulated) { + status.starting_time = getTime(); status.position = new Point(status.path.point(0)); setInterval(simulate_gps, 500, status); } else { @@ -807,7 +808,7 @@ function start_gipy(filename, path_data) { (data.lat != 0.0 || data.lon != 0.0); if (valid_coordinates) { if (this.starting_time === null) { - this.starting_time = getTime(); + status.starting_time = getTime(); Bangle.loadWidgets(); // i don't know why i cannot load them at start : they would display on splash screen } status.update_position(new Point(data.lon, data.lat), null);