diff --git a/config/dev/default.toml b/config/dev/default.toml index 18d2890..bc956c6 100644 --- a/config/dev/default.toml +++ b/config/dev/default.toml @@ -16,10 +16,10 @@ accept_untrusted_certs = true [settings] max_fails = 3 -send_voice = true -send_gps = 'true' +send_voice = false +send_gps = true send_group_monitoring_before_each_call = 'true' -gps_report_interval = 10000 # The interval in which the GPS is sent +gps_report_interval = 300 # The interval in which the GPS is sent gps_lat_start_point = 46.217802 gps_lng_start_point = 24.776126 delay_between_clients = 300 @@ -32,7 +32,7 @@ testing_duration = 600 # seconds #] ids = [ - 5488 + 1868 ] [sounds] diff --git a/src/asset.js b/src/asset.js index fcd5693..f498852 100644 --- a/src/asset.js +++ b/src/asset.js @@ -498,7 +498,6 @@ class Asset { _sendGPS(callback) { let hub = this.hub; if (hub && hub.connected) { - let lat = this.configs.settings.gps_lat_start_point; let lng = this.configs.settings.gps_lng_start_point; @@ -521,7 +520,9 @@ class Asset { )); lat = new_lat; lng = new_lng; - + if (!this.configs.settings.send_voice) { + this._start(); + } }, this.configs.settings.gps_report_interval); } }