1
0
Fork 0

gipy: minor fix

master
frederic wagner 2023-01-03 09:30:46 +01:00
parent c07261f927
commit 4aa06762d4
1 changed files with 2 additions and 1 deletions

View File

@ -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);